Skip to content

Prevent construction of null-valued JsonNodes (like TextNode) #4381

@cowtowncoder

Description

@cowtowncoder

Describe your Issue

(note: follow-up to #4378 which is for 2.x)

We should not allow constructing JsonNodes around null, except for explicit NullNode: attempts to do so should throw a JacksonException (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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssues to be only tackled for Jackson 3.x, not 2.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions