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

xds: add null reference checks in SslContextProviderSupplier #8169

Merged
merged 2 commits into from May 12, 2021

Conversation

sanjaypujare
Copy link
Contributor

Add null checks in SslContextProviderSupplier constructor and close (in case updateSslContext was never called)

@sanjaypujare sanjaypujare added the TODO:backport PR needs to be backported. Removed after backport complete label May 12, 2021
}

@Test
public void get_updateSecret() {
prepareSupplier();
prepareSupplier(true);
Copy link
Member

Choose a reason for hiding this comment

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

I would suggest use two separate methods:

prepareSupplier();
updateSslContext();

The boolean arg true looks less readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@sanjaypujare sanjaypujare enabled auto-merge (squash) May 12, 2021 17:26
@sanjaypujare sanjaypujare merged commit e59604b into grpc:master May 12, 2021
@sanjaypujare sanjaypujare deleted the supplier-fix1 branch May 12, 2021 17:31
sanjaypujare added a commit to sanjaypujare/grpc-java that referenced this pull request May 12, 2021
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label Aug 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants