-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When serializing a Map via Converter(StdDelegatingSerializer), a NullPointerException is thrown due to missing key serializer #4878
Comments
Agreed, at very least should not throw NPE. Hoping to look into this soon. |
Ok, soon meant 3 weeks. But now I'm looking. :) I think EDIT: actually it looks like contextualization (call to |
Hmmm, I tried running the test based on the test reported below, but unfortunately I still get the same error. In the stack trace, the line numbers of the
Check to see if it can be reproduced using only |
New Issue Submitted. The test case for this issue seems to have identified another bug that results in exactly the same error as the problem detected in the |
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: