Include error element in #toXML. SMACK-50

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2468 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-03-28 16:54:49 +00:00 committed by gaston
parent 2b9b152743
commit be8535765a
1 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,12 @@ public class Presence extends Packet {
buf.append(this.getExtensionsXML());
// Add the error sub-packet, if there is one.
XMPPError error = getError();
if (error != null) {
buf.append(error.toXML());
}
buf.append("</presence>");
return buf.toString();