From bfc43c8a897f239b734b8c7cfd15b783aeee9b83 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 21 Nov 2017 20:54:47 +0100 Subject: apperently some servers will ommit the from even for stanzas not going to them --- src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 2fb3aa30c..8bb75ab72 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -803,7 +803,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 { -- cgit v1.2.3