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

Test for 'nil' on GetRequiredConversationResolution() to avoid crash. #1032

Merged

Conversation

reptile-deer-66
Copy link
Contributor

On some repositories, we experienced a provider plugin crash at resource_github_branch_protection_v3.go:245 do to a 'nil' value returned from githubProtection.GetRequiredConversationResolution().

This change prevents the provider from crashing and allows the terraform plan to complete successfully.

@reptile-deer-66
Copy link
Contributor Author

Note, this happened against Github Enterprise 3.1.

Copy link
Contributor

@majormoses majormoses left a comment

Choose a reason for hiding this comment

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

LGTM

@jcudit jcudit modified the milestones: v4.20.0, v4.19.2 Jan 20, 2022
@jcudit jcudit merged commit 3ad7ab2 into integrations:main Jan 21, 2022
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
kazaker pushed a commit to auto1-oss/terraform-provider-github that referenced this pull request Dec 28, 2022
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.

3 participants