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

Set context early on in LoadAndValidate to prevent NPE #2321

Conversation

modular-magician
Copy link
Collaborator

I do not know that this will fix the problem, but I believe it will. Cannot reproduce crash locally even though context is verified to be nil going in to creds, err := googleoauth.CredentialsFromJSON(c.context, []byte(contents), clientScopes...)

Release Note Template for Downstream PRs (will be copied)

Fixed crash due to nil context when loading credentials

Derived from GoogleCloudPlatform/magic-modules#3800

@ghost ghost added the size/xs label Jul 31, 2020
@modular-magician modular-magician merged commit 711b290 into hashicorp:master Jul 31, 2020
@modular-magician modular-magician deleted the downstream-pr-d52ce6787a7e428c5ad2b7b96bd14723cd1960ea branch November 16, 2024 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant