Skip to content

fix #447 by allowing deserializeOr to return null#481

Merged
zml2008 merged 2 commits into
masterfrom
fix/447
Dec 11, 2021
Merged

fix #447 by allowing deserializeOr to return null#481
zml2008 merged 2 commits into
masterfrom
fix/447

Conversation

@kashike

@kashike kashike commented Oct 20, 2021

Copy link
Copy Markdown
Member

No description provided.

@Camotoy Camotoy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a clientbound chat message packet would cause a null pointer error on Minecraft 1.17.1 (meaning it's fully justified as a thing in Adventure). So, having this option as a sane API way to check for controlled null packets, this works for our use-case.

@kezz kezz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have a unit test for this that references the linked issue?

@zml2008 zml2008 added this to the 4.10.0 milestone Dec 8, 2021

@kezz kezz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending style fixes :p

@zml2008 zml2008 self-assigned this Dec 11, 2021
@zml2008 zml2008 enabled auto-merge December 11, 2021 19:02
@zml2008 zml2008 merged commit b47e673 into master Dec 11, 2021
@zml2008 zml2008 deleted the fix/447 branch December 23, 2021 22:02
This was referenced Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GsonComponentSerializer doesn't properly handle "null" string

4 participants