Prevent construction of null
-valued JsonNode
s (like TextNode
)
#4381
Labels
3.x
Issues to be only tackled for Jackson 3.x, not 2.x
Uh oh!
There was an error while loading. Please reload this page.
Describe your Issue
(note: follow-up to #4378 which is for 2.x)
We should not allow constructing
JsonNode
s aroundnull
, except for explicitNullNode
: attempts to do so should throw aJacksonException
(DatabindException
subtype).This should be checked for:
TextNode
BigIntegerNode
DecimalNode
BinaryNode
There may also be cases where we decide
null
is appropriate content.One such type is
POJONode
.The text was updated successfully, but these errors were encountered: