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:
- Users can use
@JsonSetter
annotation on field (or equivalent Config Overrides) to "skip nulls"
- We should throw
JsonMappingException
(specifically, MismatchedInputException
) instead of NPE in failure case