mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-06 17:25:01 -05:00
fixed rare npe
This commit is contained in:
parent
4fdc6b2eac
commit
c18e986a93
@ -160,8 +160,12 @@ public class Account extends AbstractEntity {
|
||||
}
|
||||
|
||||
public boolean hasErrorStatus() {
|
||||
return getStatus() > STATUS_NO_INTERNET
|
||||
&& (getXmppConnection().getAttempt() >= 2);
|
||||
if (getXmppConnection() == null) {
|
||||
return false;
|
||||
} else {
|
||||
return getStatus() > STATUS_NO_INTERNET
|
||||
&& (getXmppConnection().getAttempt() >= 2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setResource(String resource) {
|
||||
|
Loading…
Reference in New Issue
Block a user