diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-21 19:44:25 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-21 19:44:25 +0200 |
commit | f6281a182df6e251a326538702bf4f3b6f80a62b (patch) | |
tree | cee7264d52d6963720455f9b14afb929acb9d81e | |
parent | 0d679a7abbaadaf8eb307b5653fbbd0fdae7538e (diff) |
fixed npe in error message handling
-rw-r--r-- | src/main/java/eu/siacs/conversations/parser/MessageParser.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/parser/MessageParser.java b/src/main/java/eu/siacs/conversations/parser/MessageParser.java index b81a62da..c2fdf5b8 100644 --- a/src/main/java/eu/siacs/conversations/parser/MessageParser.java +++ b/src/main/java/eu/siacs/conversations/parser/MessageParser.java @@ -206,7 +206,7 @@ public class MessageParser extends AbstractParser implements from.toBareJid(), packet.getId(), Message.STATUS_SEND_FAILED); - if (message.getEncryption() == Message.ENCRYPTION_OTR) { + if (message != null && message.getEncryption() == Message.ENCRYPTION_OTR) { message.getConversation().endOtrIfNeeded(); } } |