aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-16 12:42:44 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-16 12:42:44 +0200
commit0ec1c022b9b193654e5ecdf6d9a8b3ba10d19ee9 (patch)
tree7599147ec2a5bdae2acf9c2a4fa8122ddb03510b /src
parente79a34b651a626b93686b8c578280b77c54b6138 (diff)
fixed rare npe
Diffstat (limited to 'src')
-rw-r--r--src/eu/siacs/conversations/parser/MessageParser.java3
1 files changed, 3 insertions, 0 deletions
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);