fixed enabled accounts check in onCreate
This commit is contained in:
parent
ce8c7d887d
commit
caf5fcad88
|
@ -2538,6 +2538,9 @@ public class XmppConnectionService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasEnabledAccounts() {
|
private boolean hasEnabledAccounts() {
|
||||||
|
if (this.accounts == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (Account account : this.accounts) {
|
for (Account account : this.accounts) {
|
||||||
if (account.isEnabled()) {
|
if (account.isEnabled()) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue