Skip to content

Commit

Permalink
fix value null is JsonValue.NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
huboliang authored and jmartisk committed Jan 16, 2024
1 parent 0445a50 commit 763c2cf
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ private void addKeyValue(JsonObjectBuilder objectBuilder, String key, String val
}

private void addKeyValue(JsonObjectBuilder objectBuilder, String key, JsonValue value) {
if (value == null) {
return;
}
value = value != null ? value : JsonValue.NULL;
if (config.getErrorExtensionFields().isPresent()) {
List<String> fieldsThatShouldBeIncluded = config.getErrorExtensionFields().get();
if (fieldsThatShouldBeIncluded.contains(key)) {
Expand Down

0 comments on commit 763c2cf

Please sign in to comment.