fixed rare npe

This commit is contained in:
iNPUTmice 2014-10-14 16:25:59 +02:00
parent 4fdc6b2eac
commit c18e986a93

View file

@ -160,8 +160,12 @@ public class Account extends AbstractEntity {
} }
public boolean hasErrorStatus() { public boolean hasErrorStatus() {
return getStatus() > STATUS_NO_INTERNET if (getXmppConnection() == null) {
&& (getXmppConnection().getAttempt() >= 2); return false;
} else {
return getStatus() > STATUS_NO_INTERNET
&& (getXmppConnection().getAttempt() >= 2);
}
} }
public void setResource(String resource) { public void setResource(String resource) {