diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-03-16 19:12:10 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-03-16 19:12:10 +0100 |
commit | dfdf8014d8fc7ab2c433d6e6fbd91fe62aa9a68c (patch) | |
tree | e678d23617b2550dd2f77967ee78870bce0fcc85 /src/main/java/de/pixart | |
parent | 33d082d4462a709c8537069577f7e7dcf73812ab (diff) |
fix NPE
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/XmppActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java index d646cc91d..398b0caef 100644 --- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java +++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java @@ -1093,8 +1093,8 @@ public abstract class XmppActivity extends ActionBarActivity { protected String doInBackground(XmppConnection... params) { String uri = null; if (this.connection != null) { - XmppConnection.Features features = connection.getFeatures(); - if (features.adhocinvite) { + XmppConnection.Features features = this.connection.getFeatures(); + if (features != null && features.adhocinvite) { int i = 0; uri = this.connection.getAdHocInviteUrl(Jid.ofDomain(this.account.getJid().getDomain())); try { |