mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-17 14:25:12 -05:00
fixed npe
This commit is contained in:
parent
9be78cbbbe
commit
b0d777d9ca
@ -340,6 +340,10 @@ public class StartConversationActivity extends XmppActivity {
|
||||
String contactJid = jid.getText().toString();
|
||||
Account account = xmppConnectionService
|
||||
.findAccountByJid(accountJid);
|
||||
if (account==null) {
|
||||
dialog.dismiss();
|
||||
return;
|
||||
}
|
||||
Contact contact = account.getRoster().getContact(
|
||||
contactJid);
|
||||
if (contact.showInRoster()) {
|
||||
|
Loading…
Reference in New Issue
Block a user