fixed rare npe

This commit is contained in:
iNPUTmice 2014-10-05 14:05:46 +02:00
parent f7f7a73ce7
commit ddb76b0e73
1 changed files with 4 additions and 0 deletions

View File

@ -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));