NullReferenceException on AmazonCloudFormationClient.UpdateStackAsync for SDK v4 #3824
Open
1 task done
Labels
bug
This issue is a bug.
module/sdk-custom
needs-review
p2
This is a standard priority issue
potential-regression
Marking this issue as a potential regression to be checked by team member
s
Effort estimation: small
Describe the bug
It is a known issue when migrating from SDK v3 to v4 that Collections will return null, resulting in a
NullReferenceException
. The workaround is to set the static variable to pre-initialize Collectoins:The long-term solution is to perform null-checks in code.
The problem with UpdateStackAsync however, is that the null reference is happening deep inside SDK code, not customer-facing code. The implication being, one cannot apply the fix, as it will need to be corrected in the SDK sauce itself.
Regression Issue
Expected Behavior
Calling UpdateStackAsync should NOT encounter
NullReferenceException
.Current Behavior
Calling UpdateStackAsync DOES encounter
NullReferenceException
.Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.CloudFormation:4.0.0.4
AWSSDK.Core:4.0.0.5
Targeted .NET Platform
8.0.115
Operating System and version
Ubuntu 24.04.2 LTS
The text was updated successfully, but these errors were encountered: