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 unexpected panic when calling Do of a PipelineClient #997

Conversation

blanet
Copy link
Contributor

@blanet blanet commented Mar 17, 2021

This PR fixes the unexpected panic issue when calling Do() of a PipelineClient with nil Response parameter.
And a new test case is added to avoid we run into similar issues in the future.

closes #996

PipelineClient would panic when calling `Do` with a nil Response as
the second parm

This commit fixes the unexpected panic by checking nil first before
setting fields for Response
@blanet blanet changed the title Fix unexpected panic for calling Do of a PipelineClient Fix unexpected panic when calling Do of a PipelineClient Mar 17, 2021
@erikdubbelboer erikdubbelboer merged commit 860c345 into valyala:master Mar 17, 2021
@erikdubbelboer
Copy link
Collaborator

Thanks!

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.

Unexpected panic when using nil response in PipelineClient
2 participants