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 handling of panic(nil) #960

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

nr-swilloughby
Copy link
Contributor

Go 1.21 changed the behavior of panic(nil) in a way that was at odds with how the agent handled that case. This PR corrects for it by checking for the new return value from recover() introduced at 1.21 as well as the nil return value which go provided in previous versions.

@nr-swilloughby nr-swilloughby merged commit d95445c into newrelic:develop Sep 5, 2024
55 checks passed
@nr-swilloughby nr-swilloughby deleted the nil_panic branch September 5, 2024 20:19
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.

2 participants