Skip to content

Commit 2c7b49f

Browse files
committed
Fix controller crash due enabling shield protection after AWS SDK Go v2 upgrades
1 parent e0f59c6 commit 2c7b49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deploy/shield/protection_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (m *defaultProtectionManager) GetProtection(ctx context.Context, resourceAR
125125
return nil, err
126126
}
127127
}
128-
if resp.Protection != nil {
128+
if resp != nil && resp.Protection != nil {
129129
protectionInfo = &ProtectionInfo{
130130
Name: awssdk.ToString(resp.Protection.Name),
131131
ID: awssdk.ToString(resp.Protection.Id),

0 commit comments

Comments
 (0)