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
1 changed files with 3 additions and 2 deletions

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;
}
}