From 31685145912727449ae721ffa034a35d7a0699fd Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Tue, 5 Aug 2003 19:39:16 +0000 Subject: [PATCH] Correctly serizlize error sub-packet. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2015 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/packet/IQ.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/packet/IQ.java b/source/org/jivesoftware/smack/packet/IQ.java index 4441087c4..ab93f46e8 100644 --- a/source/org/jivesoftware/smack/packet/IQ.java +++ b/source/org/jivesoftware/smack/packet/IQ.java @@ -106,12 +106,12 @@ public abstract class IQ extends Packet { if (queryXML != null) { buf.append(queryXML); } - buf.append(""); // Add the error sub-packet, if there is one. XMPPError error = getError(); if (error != null) { buf.append(error.toXML()); } + buf.append(""); return buf.toString(); }