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

Avoid NPE writing StringBuilder/StringBuffer #672

Merged
merged 1 commit into from May 4, 2019

Conversation

2 participants
@candrews
Copy link
Contributor

commented May 3, 2019

If a null StringBuilder or StringBuffer is provided, a NullPointerException occurs. Since these serializers both do setAcceptsNull(true), a null is passed to their write methods which needs to be handled.

Avoid NPE writing StringBuilder/StringBuffer
If a null StringBuilder or StringBuffer is provided, a NullPointerException occurs. Since these serializers both do `setAcceptsNull(true)`, a null is passed to their `write` methods which needs to be handled.
@NathanSweet

This comment has been minimized.

Copy link
Member

commented May 4, 2019

Good catch, thanks!

@NathanSweet NathanSweet merged commit 2c016e0 into EsotericSoftware:master May 4, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.