-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
When serializing a Map
using the serializer obtained with SerializerProvider.findValueSerializer
, a NullPointerException is thrown due to missing key serializer
#4928
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
Comments
@k163377 What's the difference between the two reproductions? One under "reproduction" and one under "addtional context" 👀 |
@JooHyukKim |
I think reproduction has a bug, this can not work:
Since Or, perhaps better yet call:
Unfortunately I do not think there is a good way to handle things more gracefully here: adding But I will see if Javadoc note on |
So, basically, handling by caller needs to be changed: no new bug demonstrated. |
@cowtowncoder
Thank you, I have confirmed that this fixes the |
Search before asking
Describe the bug
This issue is a continuation of #4878 (FasterXML/jackson-module-kotlin#873).
There was a misunderstanding about reproducing the bug in
Java
, and the test case seems to have detected another similar bug.Version Information
Confirmed on 2.18 and branches.
Reproduction
Expected behavior
At least it shouldn't be a
NullPointerException
.Additional context
Finally, if the following tests succeed, the problem in
kotlin-module
should be solved.The text was updated successfully, but these errors were encountered: