mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Include conditionText in XMPPError.toXML()
This commit is contained in:
parent
ed4fa3390f
commit
9c5b7d263e
1 changed files with 8 additions and 1 deletions
|
@ -199,7 +199,14 @@ public class XMPPError extends AbstractError {
|
||||||
|
|
||||||
xml.halfOpenElement(condition.toString());
|
xml.halfOpenElement(condition.toString());
|
||||||
xml.xmlnsAttribute(NAMESPACE);
|
xml.xmlnsAttribute(NAMESPACE);
|
||||||
|
if (conditionText != null) {
|
||||||
|
xml.rightAngleBracket();
|
||||||
|
xml.escape(conditionText);
|
||||||
|
xml.closeElement(condition.toString());
|
||||||
|
}
|
||||||
|
else {
|
||||||
xml.closeEmptyElement();
|
xml.closeEmptyElement();
|
||||||
|
}
|
||||||
|
|
||||||
addDescriptiveTextsAndExtensions(xml);
|
addDescriptiveTextsAndExtensions(xml);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue