-
Notifications
You must be signed in to change notification settings - Fork 622
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
invalid memory address or nil pointer dereference on [email protected]/elasticsearch.go:307 #913
Comments
arp242
added a commit
to arp242/go-elasticsearch
that referenced
this issue
Nov 20, 2024
The http.Resonse will be nil on errors, so return early. Fixes elastic#913
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Laurent Saint-Félix <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Martin Tournoij <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Martin Tournoij <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Martin Tournoij <[email protected]>
Anaethelion
added a commit
that referenced
this issue
Nov 27, 2024
* Check error in BaseClient.Perform The http.Resonse will be nil on errors, so return early. Fixes #913 * revert reordering of imports --------- Co-authored-by: Martin Tournoij <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've caught a panic from k8s log as belows.
The method is as belows.
There might be an issue where the code does not check if res is nil before accessing res.StatusCode, which could lead to the panic.
The text was updated successfully, but these errors were encountered: