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

Null check result of HttpServerBuilder supplier #2317

Merged
merged 4 commits into from
Aug 10, 2022
Merged

Conversation

bondolo
Copy link
Contributor

@bondolo bondolo commented Aug 10, 2022

Motivation:
DefaultGrpcServerBuilder invokes a provided Supplier without checking
the result for null. A NullPointerException will occur, but will not
include context about what was null.
Modifications:
Add Objects.requireNonNull check when invoking Supplier
Result:
Better diagnostic for failed Supplier.

Motivation:
`DefaultGrpcServerBuilder` invokes a provided Supplier without checking
the result for null. A `NullPointerException` will occur, but will not
include context about what was null.
Modifications:
Add `Objects.requireNonNull` check when invoking `Supplier`
Result:
Better diagnostic for failed Supplier.
@bondolo bondolo added the enhancement New feature or request label Aug 10, 2022
@bondolo bondolo self-assigned this Aug 10, 2022
Copy link
Contributor

@tkountis tkountis left a comment

Choose a reason for hiding this comment

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

lgtm

@bondolo bondolo merged commit 17fbb91 into apple:main Aug 10, 2022
@bondolo bondolo deleted the null-check branch August 10, 2022 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants