Skip to content

ThrowableDeserializer does not handle null well for cause #4248

@cowtowncoder

Description

@cowtowncoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.17Issues planned at earliest for 2.17

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions