aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-12-10 23:16:33 +0100
committerChristian S <christian@pix-art.de>2015-12-12 15:51:39 +0100
commit52aaa72e43c57f9c9db3106bdd42dae314f316e3 (patch)
treeccc4379b7c76350a37e446f78cb6331f23a36714
parentffe3d42a115e1d2a535c1ced1a65ee9aa975d84c (diff)
some more NPE checks
-rw-r--r--src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java
index a3dc1357e..e22b05c00 100644
--- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java
+++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java
@@ -72,7 +72,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
@Override
public void onAdvancedStreamFeaturesAvailable(Account account) {
- if (account.getXmppConnection().getFeatures().pep()) {
+ if (account.getXmppConnection() != null && account.getXmppConnection().getFeatures().pep()) {
publishBundlesIfNeeded(true, false);
} else {
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization");