diff options
author | Sam Whited <sam@samwhited.com> | 2014-12-22 10:50:29 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2014-12-22 11:24:08 -0500 |
commit | e1cb72b9ef4d4bfb9d11fff68e296462405d6992 (patch) | |
tree | 290c17f5e849842d8e22d0b9febe0df85e426d60 /src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | |
parent | a94663aaa4d52ba27ada76abe55d2d113304b4e0 (diff) |
Fix NPEs in blocking code
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index 47fe5964e..0dd7a2ebd 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -327,7 +327,7 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate if (mAccount == null) { showQrCode.setVisible(false); showBlocklist.setVisible(false); - } else if (!mAccount.getXmppConnection().getFeatures().blocking()) { + } else if (mAccount.getStatus() != Account.State.ONLINE || !mAccount.getXmppConnection().getFeatures().blocking()) { showBlocklist.setVisible(false); } return true; |