some more NPE checks

This commit is contained in:
Daniel Gultsch 2015-12-10 23:16:33 +01:00
parent 55c1129a65
commit 15f220747f

View file

@ -72,7 +72,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
@Override @Override
public void onAdvancedStreamFeaturesAvailable(Account account) { public void onAdvancedStreamFeaturesAvailable(Account account) {
if (account.getXmppConnection().getFeatures().pep()) { if (account.getXmppConnection() != null && account.getXmppConnection().getFeatures().pep()) {
publishBundlesIfNeeded(true, false); publishBundlesIfNeeded(true, false);
} else { } else {
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization"); Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization");