From 41a3ec05c74a8dbc5b1faa003f04caa6f5bace5a Mon Sep 17 00:00:00 2001 From: adiaholic Date: Sun, 28 Jul 2019 16:36:12 +0530 Subject: [PATCH] Returning obtained XmlStringBuilder instead of null --- .../jivesoftware/smackx/mediaelement/element/MediaElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/mediaelement/element/MediaElement.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/mediaelement/element/MediaElement.java index b831933e5..08ebeba32 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/mediaelement/element/MediaElement.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/mediaelement/element/MediaElement.java @@ -90,7 +90,7 @@ public class MediaElement implements FormFieldChildElement { xml.append(uris, xmlEnvironment); xml.closeElement(this); - return null; + return xml; } public MediaElement from(FormField formField) {