Merge pull request #664 from squidpickles/development

Added check for empty from on group chat packet
This commit is contained in:
Daniel Gultsch 2014-11-14 21:01:21 +01:00
commit c61120bfc4
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;