Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
[json] fix bug with null value
Browse files Browse the repository at this point in the history
A json field with a null value was being serialized to a “null” string.
  • Loading branch information
dmichel1 committed Nov 25, 2018
1 parent 1d441da commit 66732b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private double decodeDouble(JsonNode tree, String name) {
String decodeString(JsonNode tree, String name) {
final JsonNode n = tree.get(name);

if (n == null) {
if (n.isNull()) {
return null;
}

Expand Down

0 comments on commit 66732b9

Please sign in to comment.