fixed npe in block menu item

This commit is contained in:
Daniel Gultsch 2014-12-30 01:16:33 +01:00
parent c78dc5b494
commit fb8737ed9f
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ public class ConversationActivity extends XmppActivity
menuUnblock.setVisible(false);
}
final Account account = this.getSelectedConversation().getAccount();
if (account.isOnlineAndConnected() || !account.getXmppConnection().getFeatures().blocking()) {
if (!(account.isOnlineAndConnected() && account.getXmppConnection().getFeatures().blocking())) {
menuBlock.setVisible(false);
menuUnblock.setVisible(false);
}