mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-15 21:45:07 -05:00
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);
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user