From 0ec1c022b9b193654e5ecdf6d9a8b3ba10d19ee9 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Wed, 16 Jul 2014 12:42:44 +0200 Subject: fixed rare npe --- src/eu/siacs/conversations/parser/MessageParser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index d4e1e08d..ac097881 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -174,6 +174,9 @@ public class MessageParser extends AbstractParser implements } else { fullJid = message.getAttribute("to"); } + if (fullJid==null) { + return null; + } String[] parts = fullJid.split("/"); Conversation conversation = mXmppConnectionService .findOrCreateConversation(account, parts[0], false); -- cgit v1.2.3