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 the panic on invalid pointer in bigquery check #746

Merged
merged 3 commits into from
Apr 26, 2023

Conversation

PumpkinSeed
Copy link
Contributor

Problem

The table.Metadata(ctx, nil) caused a panic, because the Metadata function wanted to loop over the received opts with a for range, but the opts was nil, so the for range paniced with invalid memory address.

Solution

Remove the nil, so the for range can loop over the slice, even if it is empty.

Resolve #745

@mlabouardy mlabouardy changed the base branch from master to develop April 26, 2023 09:23
@mlabouardy
Copy link
Collaborator

thanks a million for the fix @PumpkinSeed :)

@mlabouardy mlabouardy added this to the v3.0.14 milestone Apr 26, 2023
@mlabouardy mlabouardy merged commit ade4072 into tailwarden:develop Apr 26, 2023
@mlabouardy mlabouardy added the gcp label Apr 26, 2023
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.

Go panic with GCP
3 participants