diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-29 12:14:10 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-29 12:14:10 +0200 |
commit | b0d777d9ca721f44d2efa2b9e0729d99aa5057b5 (patch) | |
tree | 7729586f9d3cdd9635ff9096aae86170a48a2c17 /src/eu/siacs/conversations/ui | |
parent | 9be78cbbbefa61afa9b06b0f7d9c201bdac556f7 (diff) |
fixed npe
Diffstat (limited to 'src/eu/siacs/conversations/ui')
-rw-r--r-- | src/eu/siacs/conversations/ui/StartConversationActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/StartConversationActivity.java b/src/eu/siacs/conversations/ui/StartConversationActivity.java index bcb9f1dd4..bd66bd94f 100644 --- a/src/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/eu/siacs/conversations/ui/StartConversationActivity.java @@ -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()) { |