aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/StartConversationActivity.java
diff options
context:
space:
mode:
authorMichael <betheg@bitcloner.org>2014-08-29 23:30:47 +0200
committerMichael <betheg@bitcloner.org>2014-08-29 23:30:47 +0200
commit3714947d5f9307b173fdaf7b0fc08d92fd824553 (patch)
tree1257249aa0b0d017170bce7c9349f48cbe68af05 /src/eu/siacs/conversations/ui/StartConversationActivity.java
parent98dabe9ab488ab92ff255cb04feaaddad6488c12 (diff)
parent5450a2ae469a84f5c285aeaf68135684ad6aae27 (diff)
Merge remote-tracking branch 'upstream/development' into fix_typo
Diffstat (limited to 'src/eu/siacs/conversations/ui/StartConversationActivity.java')
-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()) {