Skip to content

NPE when serializer is missing #989

@yawkat

Description

@yawkat

Expected Behavior

There should never be an NPE in serde code.

Actual Behaviour

NPE in this line. Likely deserializer is null.

User reports this happens in conjunction with io.micronaut.serde.exceptions.SerdeException: Cannot find deserializer: class …, with the missing deserializer implementing Deserializer<String>. Likely there is some failure looking up the deserializer, so that it is not set, and then the NPE happens later on. The first error is likely fine, but the NPE should not happen.

Steps To Reproduce

Unclear. No test case currently available. Reproducers welcome :)

Environment Information

No response

Example Application

No response

Version

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions