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

View file

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