do not crash when inner message contains invalid jid
This commit is contained in:
parent
b1b7cf5c0a
commit
9963616270
|
@ -293,8 +293,8 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
||||||
}
|
}
|
||||||
boolean notify = false;
|
boolean notify = false;
|
||||||
|
|
||||||
if (from == null) {
|
if (from == null || !InvalidJid.isValid(from) || !InvalidJid.isValid(to)) {
|
||||||
Log.d(Config.LOGTAG, "no from in: " + packet.toString());
|
Log.e(Config.LOGTAG, "encountered invalid message from='" + from + "' to='" + to + "'");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue