From: David ‘Bombe’ Roden Date: Wed, 5 Jul 2017 20:20:56 +0000 (+0200) Subject: Use correct way to store null values X-Git-Tag: 0.9.7^2~109 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c8ec257b2e17d8153eba587b616d666219f1f8b8;p=Sone.git Use correct way to store null values --- 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)); } /**