1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-29 09:42:06 +01:00

Include conditionText in XMPPError.toXML()

This commit is contained in:
Florian Schmaus 2015-03-06 09:10:49 +01:00
parent ed4fa3390f
commit 9c5b7d263e

View file

@ -199,7 +199,14 @@ public class XMPPError extends AbstractError {
xml.halfOpenElement(condition.toString()); xml.halfOpenElement(condition.toString());
xml.xmlnsAttribute(NAMESPACE); xml.xmlnsAttribute(NAMESPACE);
xml.closeEmptyElement(); if (conditionText != null) {
xml.rightAngleBracket();
xml.escape(conditionText);
xml.closeElement(condition.toString());
}
else {
xml.closeEmptyElement();
}
addDescriptiveTextsAndExtensions(xml); addDescriptiveTextsAndExtensions(xml);