ObjectMapper.setDefaultLeniency()
is causing NullPointerException
in JacksonJodaDateFormat
#113
Milestone
ObjectMapper.setDefaultLeniency()
is causing NullPointerException
in JacksonJodaDateFormat
#113
(Jackson version:
2.10.1
)Consider the following example:
This code raises the following exception:
This is caused by
JsonFormat.Value#getPattern()
returningnull
at line https://github.com/FasterXML/jackson-datatype-joda/blob/master/src/main/java/com/fasterxml/jackson/datatype/joda/cfg/JacksonJodaDateFormat.java#L123.Note that
getPattern
returns an empty string whenJsonFormat
comes from an annotation, butnull
when created because ofObjectMapper.setDefaultLenciency()
.The text was updated successfully, but these errors were encountered: