diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-10-05 14:05:46 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-10-05 14:05:46 +0200 |
commit | ddb76b0e7373cfc876a88520fbcf7667088a6316 (patch) | |
tree | 81dbb7ac362e336c0c1a49ada4ce682c55588f8e /src/eu | |
parent | f7f7a73ce78bfc22fdeebfdc89946d8ffccaf25f (diff) |
fixed rare npe
Diffstat (limited to 'src/eu')
-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 830bf252..78218360 100644 --- a/src/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/eu/siacs/conversations/ui/StartConversationActivity.java @@ -403,6 +403,10 @@ public class StartConversationActivity extends XmppActivity { String conferenceJid = jid.getText().toString(); Account account = xmppConnectionService .findAccountByJid(accountJid); + if (account==null) { + dialog.dismiss(); + return; + } if (bookmarkCheckBox.isChecked()) { if (account.hasBookmarkFor(conferenceJid)) { jid.setError(getString(R.string.bookmark_already_exists)); |