Skip to content

Commit 808fcbc

Browse files
authored
Merge pull request #3896 from shraddhabang/main
Fix controller crash due enabling shield protection after AWSSDKGoV2 upgrade
2 parents 16c8849 + f2a3169 commit 808fcbc

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)