File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/PolicyInsights/PolicyInsights Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * Fix null reference issue in Get-AzPolicyState
22
+ - More information here: https://github.com/Azure/azure-powershell/issues/9446
21
23
22
24
## Version 1.1.1
23
25
* Fix Null reference issue in Get-AzPolicyEvent
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public PolicyState(Management.PolicyInsights.Models.PolicyState policyState)
182
182
return ;
183
183
}
184
184
185
- this . AdditionalProperties = policyState . AdditionalProperties ;
185
+ this . AdditionalProperties = policyState . AdditionalProperties ?? new Dictionary < string , object > ( ) ;
186
186
this . AdditionalProperties . Remove ( "@odata.id" ) ;
187
187
188
188
this . Timestamp = policyState . Timestamp ;
You can’t perform that action at this time.
0 commit comments