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

fix/internal/grpc/retry/testpb: fix NPE in vendored testpb package interceptor_suite.go #64199

Draft
wants to merge 1 commit into
base: graphite-ggilmorefeature_internal_grpc_retry_vendor_go-grpc-middleware_testing_testpb_package
Choose a base branch
from

Conversation

ggilmore
Copy link
Contributor

@ggilmore ggilmore commented Jul 31, 2024

If the net.Listen call fails, the returned listener will be nil and the error will never be printed.

This PR fixes the issue by adding the if err != nil check before we try to access the listener.

Test plan

N/A - this is a vendored package

Changelog

@cla-bot cla-bot bot added the cla-signed label Jul 31, 2024
Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ggilmore and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 31, 2024
@ggilmore ggilmore force-pushed the graphite-ggilmorefeature_internal_grpc_retry_vendor_go-grpc-middleware_testing_testpb_package branch from 4e40431 to ded7187 Compare July 31, 2024 21:21
@ggilmore ggilmore force-pushed the graphite-ggilmorefix_internal_grpc_retry_testpb_fix_npe_in_vendored_testpb_package_interceptor_suite.go branch from 09f854c to 3153dc0 Compare July 31, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant