When serializing a Map via Converter(StdDelegatingSerializer), a NullPointerException is thrown due to missing key serializer #4878
Labels
to-evaluate
Issue that has been received but not yet evaluated
Search before asking
Describe the bug
For a class that wraps a
Map
, registering and serializing aStdDelegatingSerializer
with aConverter
that unwraps it will throw the following errorVersion Information
Confirmed on 2.18(7144db0) and 2.19(6729641) branches.
Reproduction
You can run it by pasting it into
src/test/java/com/fasterxml/jackson/databind
.Expected behavior
At least it shouldn't be a
NullPointerException
.Additional context
This error can be suppressed by changing the definition of
WrapperConverter
as follows to make the specification to generics concrete.This was not done because I was trying to reproduce a problem that had been reported to
kotlin-module
.The text was updated successfully, but these errors were encountered: