fixed npe in block menu item
This commit is contained in:
parent
c78dc5b494
commit
fb8737ed9f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue