mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-25 00:48:52 -05:00
fixed rare npe
This commit is contained in:
parent
f7f7a73ce7
commit
ddb76b0e73
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user