aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-29 12:14:10 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-29 12:14:10 +0200
commitb0d777d9ca721f44d2efa2b9e0729d99aa5057b5 (patch)
tree7729586f9d3cdd9635ff9096aae86170a48a2c17 /src/eu/siacs/conversations
parent9be78cbbbefa61afa9b06b0f7d9c201bdac556f7 (diff)
fixed npe
Diffstat (limited to 'src/eu/siacs/conversations')
-rw-r--r--src/eu/siacs/conversations/ui/StartConversationActivity.java4
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 bcb9f1dd..bd66bd94 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()) {