-
Notifications
You must be signed in to change notification settings - Fork 38
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
APIError.Error() nil pointer exception in some cases. #350
Comments
Hi @hime, Please provide a complete code example reproducing the issue you encountered, along with the expected output when running your example. Thanks! |
Hi @quartzmo, Here's a code example. Regarding the expected output, maybe we can leave the message unset if error is nil. Code
Output
|
@hime Thanks for the quick reply. I reproduced the issue using your code example. I need to do some investigation into what the expected behavior is when the second |
I'm curious if getting a nil pointer exception when trying to get string version of APIError (using .Error()) documented. The issue arises when we attempt to run operations on the wrapped error field
APIError.err
. We are able to safely created using theParseError
. However, when we call .Error() method on this error, we callAPIError.err.Error()
without checking if err field was set.Environment details
Steps to reproduce
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: