-
Notifications
You must be signed in to change notification settings - Fork 243
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
CreateEventWithHTTPClient nil pointer dereference #274
Comments
@blockpane good lookin' out. Would you be able to raise a PR? If not I can get to it this weekend. If you raise the PR I can review it + merge it; otherwise I'm blocked on a PagerDuty employee giving me a review since I don't have the power to merge my own PRs. In short, I think making this a wrapped error ( |
Absolutely, but I don't see a develop branch, where should I send the PR? master? |
Assuming you take Friday nights off, like I should, lol, I assumed a PR vs master, if inappropriate we can revisit next week, cheers, and thanks again for providing a useful free library :) |
This will be included in |
Line 52 of event.go
has the following:
In the case of an actual error, it is very likely that
resp
is nil, and will result in a runtime panic. For example:The V2 client handles this properly and returns nil. (Also note: I meant to use the V2 API in the first place, so this doesn't actually affect me.)
Thanks for the handy library.
The text was updated successfully, but these errors were encountered: