mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-21 22:02:06 +01:00
Fix ConcurrentModificationException in XmlStringBuilder.appendToXml()
We want to append to appendable, not sb, the LazyStringBuilder we are currently iterating over,
This commit is contained in:
parent
afd61670a4
commit
fb3a71a14d
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
|
|||
else if (csq instanceof XmlNsAttribute) {
|
||||
XmlNsAttribute xmlNsAttribute = (XmlNsAttribute) csq;
|
||||
if (!xmlNsAttribute.value.equals(enclosingXmlEnvironment.getEffectiveNamespace())) {
|
||||
sb.append(xmlNsAttribute);
|
||||
appendable.append(xmlNsAttribute);
|
||||
enclosingXmlEnvironment = new XmlEnvironment(xmlNsAttribute.value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue