diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-20 12:36:57 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-20 12:36:57 +0200 |
commit | 542cbef53ba4a62405d03cd08b1a6342d5c3cddc (patch) | |
tree | a97813e6af017b6ea67b201f53d4ee74386d0693 /src/eu/siacs/conversations/entities | |
parent | 9ddd2f195e5e20394a5f911f397f57ab7441ebb9 (diff) |
hide verify snackbar when otr session is ended. fixed npe
Diffstat (limited to 'src/eu/siacs/conversations/entities')
-rw-r--r-- | src/eu/siacs/conversations/entities/Conversation.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Conversation.java b/src/eu/siacs/conversations/entities/Conversation.java index e04d7bf8..83ea8931 100644 --- a/src/eu/siacs/conversations/entities/Conversation.java +++ b/src/eu/siacs/conversations/entities/Conversation.java @@ -291,6 +291,9 @@ public class Conversation extends AbstractEntity { public String getOtrFingerprint() { if (this.otrFingerprint == null) { try { + if (getOtrSession()== null) { + return ""; + } DSAPublicKey remotePubKey = (DSAPublicKey) getOtrSession() .getRemotePublicKey(); StringBuilder builder = new StringBuilder( |