mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -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();
|
String conferenceJid = jid.getText().toString();
|
||||||
Account account = xmppConnectionService
|
Account account = xmppConnectionService
|
||||||
.findAccountByJid(accountJid);
|
.findAccountByJid(accountJid);
|
||||||
|
if (account==null) {
|
||||||
|
dialog.dismiss();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (bookmarkCheckBox.isChecked()) {
|
if (bookmarkCheckBox.isChecked()) {
|
||||||
if (account.hasBookmarkFor(conferenceJid)) {
|
if (account.hasBookmarkFor(conferenceJid)) {
|
||||||
jid.setError(getString(R.string.bookmark_already_exists));
|
jid.setError(getString(R.string.bookmark_already_exists));
|
||||||
|
Loading…
Reference in New Issue
Block a user