Skip to content

Incompatible Constructor Parameter Type in EnumDeserializer #4581

@Hunter-Lam

Description

@Hunter-Lam

Code Link

public EnumDeserializer(EnumResolver byNameResolver, boolean caseInsensitive,

Description

Type of caseInsensitive should be Boolean instead of boolean. Otherwise, when using contructors without caseInsensitive, e.g. EnumDeserializer(com.fasterxml.jackson.databind.util.EnumResolver), will cause NullPointerException.

Version Information

since 2.15.0

Exception Related to 2.15.4 Version

java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because "caseInsensitive" is null
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.<init>(EnumDeserializer.java:82)
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.<init>(EnumDeserializer.java:131)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions