From 9d0d8088f496063fdeabf2af03d298e9b6fe76db Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 24 Nov 2016 10:37:26 +0100 Subject: [PATCH] Don't throw when calling UnparsedIQ.toXML() this causes the debugger to terminate if an unparsed IQ is shown. --- .../main/java/org/jivesoftware/smack/packet/UnparsedIQ.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/UnparsedIQ.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/UnparsedIQ.java index 8aa42f7f4..e363d2e30 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/UnparsedIQ.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/UnparsedIQ.java @@ -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; } }