Skip to content

Commit 96d9c18

Browse files
Merge pull request #45 from pluralsh/fix-nil-pointer-deref
Fix nil pointer dereference in tf provider
2 parents 54d51db + a5e7be6 commit 96d9c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resource/cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (r *clusterResource) Delete(ctx context.Context, req resource.DeleteRequest
153153

154154
if err = wait.PollWithContext(ctx, 10*time.Second, 10*time.Minute, func(ctx context.Context) (bool, error) {
155155
response, err := r.client.GetCluster(ctx, data.Id.ValueStringPointer())
156-
if client.IsNotFound(err) || response.Cluster == nil {
156+
if client.IsNotFound(err) || response == nil || response.Cluster == nil {
157157
return true, nil
158158
}
159159

0 commit comments

Comments
 (0)