aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index 582bf9bd..1fd42bca 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -321,6 +321,10 @@ public class XmppConnection implements Runnable {
IOException {
IqPacket packet = (IqPacket) processPacket(currentTag, PACKET_IQ);
+ if (packet.getId() == null) {
+ return; //an iq packet without id is definitely invalid
+ }
+
if (packet instanceof JinglePacket) {
if (this.jingleListener !=null) {
this.jingleListener.onJinglePacketReceived(account, (JinglePacket) packet);