-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yasson 3 fails to serialize a null Optional #575
Comments
Hi @loicmathieu, |
Hi @Verdent |
Fix is presented currently in PR #576. It should be merged fairly quickly. When that is done you could possibly build new Yasson out of the main branch to test it, or wait for snapshot to be automatically build. |
Great ! |
@loicmathieu New snapshot is live now :-) |
@Verdent thanks a lot ! |
Our snapshot repo is in jakarta OSS sonatype :-) <repositories>
<repository>
<id>jakarta-snapshots</id>
<url>https://jakarta.oss.sonatype.org/content/repositories/staging/</url>
</repository>
</repositories> |
Thanks @Verdent I'll have a look tomorrow and let you know how it goes. |
Thanks @Verdent it solves the reported issue. |
@loicmathieu Thank you for reporting back. I am glad to hear that! I will do a new release some time next week. |
@loicmathieu Yasson 3.0.2 is out. |
@Verdent thanks! We'll upgrade it. |
Describe the bug
Yasson 3 is unable to serialize a null Optional, leading to a NullPointerException.
It worked with Yasson 1.0.11 but not with Yasson 3.0.1
To Reproduce
Expected behavior
Serializing a null Optional works as expected.
System information:
The text was updated successfully, but these errors were encountered: