apperently some servers will ommit the from even for stanzas not going to them

This commit is contained in:
Daniel Gultsch 2017-11-16 12:48:26 +01:00
parent 75a485cbc1
commit c52492ada0
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ public class XmppConnection implements Runnable {
Log.e(Config.LOGTAG, account.getJid().toBareJid().toString() + ": ignoring spoofed iq packet");
}
} else {
if (packet.getFrom().equals(packetCallbackDuple.first.getTo())) {
if (packet.getFrom() != null && packet.getFrom().equals(packetCallbackDuple.first.getTo())) {
callback = packetCallbackDuple.second;
packetCallbacks.remove(packet.getId());
} else {