You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Markus Jung (Jira)" <ji...@apache.org> on 2025/05/07 10:53:00 UTC

[jira] [Resolved] (JOHNZON-413) Missing json values fail when using @JsonbCreator and @JsonbTypeAdapter

     [ https://issues.apache.org/jira/browse/JOHNZON-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Markus Jung resolved JOHNZON-413.
---------------------------------
    Resolution: Fixed

> Missing json values fail when using @JsonbCreator and @JsonbTypeAdapter
> -----------------------------------------------------------------------
>
>                 Key: JOHNZON-413
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-413
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B
>    Affects Versions: 2.0.1
>            Reporter: David Blevins
>            Priority: Major
>             Fix For: 2.0.2
>
>
> Missing json values fail when using @JsonbCreator and @JsonbTypeAdapter due a null pointer on the last line of `MappingParserImpl.compareTo` where a toString is called on the null jsonValue `return converter.to(jsonValue.toString());`
>  
> When no `@JsonbTypeAdapter` is used, missing json values do not cause failure.
>  
> Fixed in https://github.com/apache/johnzon/pull/130



--
This message was sent by Atlassian Jira
(v8.20.10#820010)