Skip to content

Commit 67bd255

Browse files
committed
Check for nil before calling IsKnown()
Signed-off-by: Tarun Chinmai Sekar <schinmai@akamai.com>
1 parent e295e17 commit 67bd255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/external_tfpluginfw.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func (n *terraformPluginFrameworkExternalClient) getDiffPlanResponse(ctx context
279279
// parametrizable attributes.
280280
filteredDiff := make([]tftypes.ValueDiff, 0)
281281
for _, diff := range rawDiff {
282-
if diff.Value1.IsKnown() && !diff.Value1.IsNull() {
282+
if diff.Value1 != nil && diff.Value1.IsKnown() && !diff.Value1.IsNull() {
283283
filteredDiff = append(filteredDiff, diff)
284284
}
285285
}

0 commit comments

Comments
 (0)