Skip to content

Commit 9ce3d1c

Browse files
committed
Minor fix to NullNode access from JsonNodeDeserializer: should use configured JsonNodeFactory
1 parent 9ff9807 commit 9ce3d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/std/JsonNodeDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static JsonDeserializer<? extends JsonNode> getDeserializer(Class<?> node
5252

5353
@Override
5454
public JsonNode getNullValue(DeserializationContext ctxt) {
55-
return NullNode.getInstance();
55+
return ctxt.getNodeFactory().nullNode();
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)