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

Prevent nil pointer deref on struct ErrorCode() #2037

Merged
merged 2 commits into from
Feb 22, 2023
Merged

Conversation

lucix-aws
Copy link
Contributor

Add a nil check to generated struct ErrorCode method to allow for code retrieval on nil receiver as was previously possible.

@lucix-aws lucix-aws requested a review from a team as a code owner February 21, 2023 22:34
{
"id": "43a4b378-b074-4786-b82a-8689c071f086",
"type": "bugfix",
"collapse": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the collapse flag being set here.

@lucix-aws lucix-aws merged commit e845552 into main Feb 22, 2023
@lucix-aws lucix-aws deleted the fix-struct-errorcode branch February 22, 2023 15:40
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.

None yet

3 participants