mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -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();
|
String contactJid = jid.getText().toString();
|
||||||
Account account = xmppConnectionService
|
Account account = xmppConnectionService
|
||||||
.findAccountByJid(accountJid);
|
.findAccountByJid(accountJid);
|
||||||
|
if (account==null) {
|
||||||
|
dialog.dismiss();
|
||||||
|
return;
|
||||||
|
}
|
||||||
Contact contact = account.getRoster().getContact(
|
Contact contact = account.getRoster().getContact(
|
||||||
contactJid);
|
contactJid);
|
||||||
if (contact.showInRoster()) {
|
if (contact.showInRoster()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user