aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2014-12-22 10:50:29 -0500
committerSam Whited <sam@samwhited.com>2014-12-22 11:24:08 -0500
commite1cb72b9ef4d4bfb9d11fff68e296462405d6992 (patch)
tree290c17f5e849842d8e22d0b9febe0df85e426d60 /src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java
parenta94663aaa4d52ba27ada76abe55d2d113304b4e0 (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.java2
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;