Skip to content
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

Fixes for #138: Move null checking to end of the conditional branch #139

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Dec 18, 2023

This PR provides a suggested fix for #138 by moving the null checking after the conditional branch to ensure null value must not sent to builder.add(value) method invocation.

@cowtowncoder
Copy link
Member

Makes sense, yes, didn't think about polymorphic deserialization case etc.

I'll have another look later today and get this merged. Was wondering why Fuzz case hadn't been resolved, this explains it.

@cowtowncoder cowtowncoder added this to the 2.17.0 milestone Dec 19, 2023
@cowtowncoder cowtowncoder merged commit 8854403 into FasterXML:2.17 Dec 19, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants