From c52492ada0801d959ca9766f9368756dc84a246b Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 16 Nov 2017 12:48:26 +0100 Subject: [PATCH] apperently some servers will ommit the from even for stanzas not going to them --- src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index 9a06206e5..63bd33016 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -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 {