From 414f9faef19863dd9db210284c262c4ba3841384 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Wed, 19 Nov 2003 16:51:19 +0000 Subject: [PATCH] A null type is equivalent to GET. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2173 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/packet/IQ.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/packet/IQ.java b/source/org/jivesoftware/smack/packet/IQ.java index 78721bdbe..7137f73b7 100644 --- a/source/org/jivesoftware/smack/packet/IQ.java +++ b/source/org/jivesoftware/smack/packet/IQ.java @@ -88,7 +88,12 @@ public abstract class IQ extends Packet { * @param type the type of the IQ packet. */ public void setType(Type type) { - this.type = type; + if (type == null) { + this.type = Type.GET; + } + else { + this.type = type; + } } public String toXML() {