fixed rare npe

This commit is contained in:
iNPUTmice 2014-07-16 12:42:44 +02:00
parent e79a34b651
commit 0ec1c022b9
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ public class MessageParser extends AbstractParser implements
} else { } else {
fullJid = message.getAttribute("to"); fullJid = message.getAttribute("to");
} }
if (fullJid==null) {
return null;
}
String[] parts = fullJid.split("/"); String[] parts = fullJid.split("/");
Conversation conversation = mXmppConnectionService Conversation conversation = mXmppConnectionService
.findOrCreateConversation(account, parts[0], false); .findOrCreateConversation(account, parts[0], false);