From c8ec257b2e17d8153eba587b616d666219f1f8b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 5 Jul 2017 22:20:56 +0200 Subject: [PATCH] Use correct way to store null values --- src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java b/src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java index 9ee0048..45bbb4f 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/JsonReturnObject.java @@ -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)); } /** -- 2.7.4