1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 12:02:05 +01:00

Correctly serizlize error sub-packet.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2015 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-08-05 19:39:16 +00:00 committed by mtucker
parent d7d534702a
commit 3168514591

View file

@ -106,12 +106,12 @@ public abstract class IQ extends Packet {
if (queryXML != null) {
buf.append(queryXML);
}
buf.append("</iq>");
// Add the error sub-packet, if there is one.
XMPPError error = getError();
if (error != null) {
buf.append(error.toXML());
}
buf.append("</iq>");
return buf.toString();
}