Skip to content

Commit

Permalink
Fix controller crash due enabling shield protection after AWS SDK Go …
Browse files Browse the repository at this point in the history
…v2 upgrades
  • Loading branch information
shraddhabang committed Oct 16, 2024
1 parent ebc3c25 commit f2a3169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/deploy/shield/protection_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (m *defaultProtectionManager) GetProtection(ctx context.Context, resourceAR
return nil, err
}
}
if resp.Protection != nil {
if resp != nil && resp.Protection != nil {
protectionInfo = &ProtectionInfo{
Name: awssdk.ToString(resp.Protection.Name),
ID: awssdk.ToString(resp.Protection.Id),
Expand Down

0 comments on commit f2a3169

Please sign in to comment.