diff --git a/source/org/jivesoftware/smack/packet/XMPPError.java b/source/org/jivesoftware/smack/packet/XMPPError.java index dba5a1eb2..3332c5ebd 100644 --- a/source/org/jivesoftware/smack/packet/XMPPError.java +++ b/source/org/jivesoftware/smack/packet/XMPPError.java @@ -130,10 +130,9 @@ public class XMPPError { */ public String toXML() { StringBuffer buf = new StringBuffer(); - buf.append(""); - buf.append("").append(code).append(""); + buf.append(""); if (message != null) { - buf.append("").append(message).append(""); + buf.append(message); } buf.append(""); return buf.toString();