From 2ce76561804301b9c83d292af01f5e8ca30d16e3 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 18 Jun 2014 19:45:14 +0200 Subject: [PATCH] Fix PrivateDataResult.getChildElementXML() that method never worked correctly since 11 years, ie. the PrivateData was never added as element text. It's not surprisingly that this was not discovered in more then a decade, since Smack usually never *sends* those stanza but only receives them. But that's no reason to not fix it. :) --- .../org/jivesoftware/smackx/iqprivate/PrivateDataManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java index 70141eef2..789e187cd 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java @@ -285,7 +285,7 @@ public class PrivateDataManager extends Manager { StringBuilder buf = new StringBuilder(); buf.append(""); if (privateData != null) { - privateData.toXML(); + buf.append(privateData.toXML()); } buf.append(""); return buf.toString();