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

Wrap possible NullPointerException #125

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Dec 4, 2023

This PR provides a possible fix for issue #124 by adding null checking and wrapping possible NullPointerException thrown from underlying code or upstream libraries.

@yawkat
Copy link
Member

yawkat commented Dec 5, 2023

if you added the null check why do you need the try-catch still?

@arthurscchan
Copy link
Contributor Author

@yawkat Thanks for your comments. They are two fixes in different packages. But I have changed the logic to have null check in both cases and added in unit test.

Copy link
Member

@cowtowncoder cowtowncoder left a comment

Choose a reason for hiding this comment

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

Looks overall pretty good! I'll check out some details of null-handling but overall this works.

@cowtowncoder cowtowncoder merged commit 97f88da into FasterXML:2.17 Dec 6, 2023
3 checks passed
@cowtowncoder
Copy link
Member

Thank you @arthurscchan !

@cowtowncoder
Copy link
Member

@arthurscchan I think that as per

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64936

similar improvement(s) also needed for GuavaMultisetDeserializer and GuavaMultimapDeserializer.

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.

3 participants