Added check for empty from on group chat packet

This commit is contained in:
Kevin Rauwolf 2014-11-14 11:40:43 -08:00
parent 793671023b
commit 2bb68bcbba
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ public class MessageParser extends AbstractParser implements
private Message parseGroupchat(MessagePacket packet, Account account) { private Message parseGroupchat(MessagePacket packet, Account account) {
int status; int status;
final Jid from = packet.getFrom(); final Jid from = packet.getFrom();
if (from == null) {
return null;
}
if (mXmppConnectionService.find(account.pendingConferenceLeaves, if (mXmppConnectionService.find(account.pendingConferenceLeaves,
account, from.toBareJid()) != null) { account, from.toBareJid()) != null) {
return null; return null;