diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-07-17 22:02:08 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-07-17 22:02:08 +0200 |
commit | eb3ac1c326faf03e4299c39544b2bb09f2ffb6fe (patch) | |
tree | ee05fc37bff785f96fb204b5a9d3feb5f3f0bc66 /src/main/java/eu | |
parent | 3e50d4831fc1cfff2fb5774cc4efdad3b35abda4 (diff) |
additional null pointer checks when verifying otr keys
Diffstat (limited to 'src/main/java/eu')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java b/src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java index 2e415d5b..d8d02c12 100644 --- a/src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/VerifyOTRActivity.java @@ -252,7 +252,7 @@ public class VerifyOTRActivity extends XmppActivity implements XmppConnectionSer } protected void updateView() { - if (this.mConversation.hasValidOtrSession()) { + if (this.mConversation != null && this.mConversation.hasValidOtrSession()) { final ActionBar actionBar = getActionBar(); this.mVerificationExplain.setText(R.string.no_otr_session_found); invalidateOptionsMenu(); |