1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

A null type is equivalent to GET.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2173 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-11-19 16:51:19 +00:00 committed by mtucker
parent 7d7c02b750
commit 414f9faef1

View file

@ -88,7 +88,12 @@ public abstract class IQ extends Packet {
* @param type the type of the IQ packet. * @param type the type of the IQ packet.
*/ */
public void setType(Type type) { public void setType(Type type) {
this.type = type; if (type == null) {
this.type = Type.GET;
}
else {
this.type = type;
}
} }
public String toXML() { public String toXML() {