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: nil pointer deference on plugin validate #142

Merged
merged 1 commit into from
Mar 4, 2022
Merged

fix: nil pointer deference on plugin validate #142

merged 1 commit into from
Mar 4, 2022

Conversation

rgiaviti
Copy link
Contributor

@rgiaviti rgiaviti commented Mar 4, 2022

Fix the issue #137

Before checking the HTTP Status Code from response, we need to make sure the response is not nil. So, if the response is nil, then we return the fail validation of plugin, an empty message and the error.

Making sure response is not nil before checking the
status code. If response is nil then return immediately
the error.
@rgiaviti rgiaviti requested a review from a team as a code owner March 4, 2022 12:55
@CLAassistant
Copy link

CLAassistant commented Mar 4, 2022

CLA assistant check
All committers have signed the CLA.

@rainest rainest merged commit ef7e9a5 into Kong:main Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants