Use correct way to store null values
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Jul 2017 20:20:56 +0000 (22:20 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 5 Jul 2017 20:20:56 +0000 (22:20 +0200)
src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java

index 9ee0048..45bbb4f 100644 (file)
@@ -116,7 +116,7 @@ public class JsonReturnObject {
         * @return This JSON return object
         */
        public JsonReturnObject put(String key, String value) {
-               return put(key, new TextNode(value));
+               return put(key, TextNode.valueOf(value));
        }
 
        /**