aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-01-26 23:31:09 +0100
committerChristian Schneppe <christian@pix-art.de>2019-01-26 23:31:09 +0100
commit975ee957b29f5ae41bf2cbb516b76fea1e42997e (patch)
treefc1d5ef73e9e48112785d59f1a03b331f94bcfd8 /src/main/java
parentf24e15e2e9f5b5784a716184aa9f51bc1b2a70cb (diff)
don't generate invite links if there were no activated accounts
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/XmppActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
index ed2a56a31..87e89ecff 100644
--- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java
@@ -954,6 +954,10 @@ public abstract class XmppActivity extends ActionBarActivity {
Toast.makeText(this, R.string.not_connected_try_again, Toast.LENGTH_SHORT).show();
return;
}
+ if (xmppConnectionService.getAccounts() == null){
+ Toast.makeText(this, R.string.no_accounts, Toast.LENGTH_SHORT).show();
+ return;
+ }
if (!xmppConnectionService.multipleAccounts()) {
Account mAccount = xmppConnectionService.getAccounts().get(0);
String user = Jid.of(mAccount.getJid()).getLocal();