-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Code Link
jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/EnumDeserializer.java
Line 110 in 9af381d
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
Labels
No labels