Skip to content

Fix nil ptr error#2487

Closed
bbernays wants to merge 2 commits into
cloudquery:mainfrom
bbernays:fix-nil-ptr-error
Closed

Fix nil ptr error#2487
bbernays wants to merge 2 commits into
cloudquery:mainfrom
bbernays:fix-nil-ptr-error

Conversation

@bbernays
Copy link
Copy Markdown
Collaborator

@bbernays bbernays commented Oct 6, 2022

This will be closed once @amanenk PR is merged

@cq-bot cq-bot added the aws label Oct 6, 2022
Comment on lines +23 to +34
subTemp := types.Subscription{}
err = faker.FakeData(&subTemp)
if err != nil {
t.Fatal(err)
}
emptySub := types.Subscription{
SubscriptionArn: aws.String("PendingConfirmation"),
Owner: subTemp.Owner,
Protocol: subTemp.Protocol,
TopicArn: subTemp.TopicArn,
Endpoint: subTemp.Endpoint,
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@amanenk - I would also add this test case to your PR

@@ -138,7 +138,9 @@ func MarshaledJsonResolver(path string) schema.ColumnResolver {
return func(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we have a test for this function? if not I think we should add it and add the test case that causes this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This PR will not be merged. See @amanenk's PR... #2486

@bbernays bbernays closed this Oct 6, 2022
@bbernays bbernays deleted the fix-nil-ptr-error branch October 6, 2022 18:21
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