Skip to content

Cache deserialization fails with NPE for null valued entries #140

@cowtowncoder

Description

@cowtowncoder

Since most Guava containers are null-averse, looks like deserializing Cache with null values fails with NPE.

Longer term it may make sense to add more options for handling wrt Guava module, but for now:

  1. Users can use @JsonSetter annotation on field (or equivalent Config Overrides) to "skip nulls"
  2. We should throw JsonMappingException (specifically, MismatchedInputException) instead of NPE in failure case

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions