mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
fixed npe in error message handling
This commit is contained in:
parent
31cb742bbf
commit
d38228f482
@ -181,7 +181,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
from.toBareJid(),
|
from.toBareJid(),
|
||||||
packet.getId(),
|
packet.getId(),
|
||||||
Message.STATUS_SEND_FAILED);
|
Message.STATUS_SEND_FAILED);
|
||||||
if (message.getEncryption() == Message.ENCRYPTION_OTR) {
|
if (message != null && message.getEncryption() == Message.ENCRYPTION_OTR) {
|
||||||
message.getConversation().endOtrIfNeeded();
|
message.getConversation().endOtrIfNeeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user