1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Don't throw when calling UnparsedIQ.toXML()

this causes the debugger to terminate if an unparsed IQ is shown.
This commit is contained in:
Florian Schmaus 2016-11-24 10:37:26 +01:00
parent b6a37cb228
commit 9d0d8088f4

View file

@ -1,6 +1,6 @@
/**
*
* Copyright © 2015 Florian Schmaus
* Copyright © 2015-2016 Florian Schmaus
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -34,6 +34,7 @@ public class UnparsedIQ extends IQ {
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) {
throw new UnsupportedOperationException();
xml.escape(content);
return xml;
}
}