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

check for nulls in Frame #519

Merged
merged 1 commit into from
Jul 27, 2018
Merged

Conversation

robertroeser
Copy link
Member

@robertroeser robertroeser commented Jul 23, 2018

Currently there are times when Frames are being released and the content field is null. This checks to see if the content is null and prevents a NullPointerException from being thrown.

Copy link
Member

@yschimke yschimke left a comment

Choose a reason for hiding this comment

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

Is it worth considering a @nullable annotation on the field? I know that isn't really helpful vs on paramters and return methods.

Also a lot of methods on this class will still NPE when content is null. So seems like a specific patch here.

@robertroeser robertroeser merged commit 78524f2 into rsocket:1.0.x Jul 27, 2018
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.

None yet

2 participants