Skip to content
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

ThrowableDeserializer does not handle null well for cause #4248

Closed
cowtowncoder opened this issue Dec 8, 2023 · 0 comments · Fixed by #4249
Closed

ThrowableDeserializer does not handle null well for cause #4248

cowtowncoder opened this issue Dec 8, 2023 · 0 comments · Fixed by #4249
Labels
2.17 Issues planned at earliest for 2.17
Milestone

Comments

@cowtowncoder
Copy link
Member

Describe your Issue

Currently JSON for deserializing any Throwable with null for "cause" property:

{ "message": "...",
   "cause": null
}

will lead to cryptic exception, due to Throwable.initCause() being called with null.
To avoid this, ThrowableDeserializer should handle this edge case gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.17 Issues planned at earliest for 2.17
Projects
None yet
1 participant