Skip to content

Comments

check for nulls in Frame#519

Merged
robertroeser merged 1 commit intorsocket:1.0.xfrom
robertroeser:nullPointer
Jul 27, 2018
Merged

check for nulls in Frame#519
robertroeser merged 1 commit intorsocket:1.0.xfrom
robertroeser:nullPointer

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.

@robertroeser robertroeser requested review from rdegnan and yschimke July 23, 2018 20:07
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.

2 participants