From 2469bac363cb0bf80aebdf50326913c21839b792 Mon Sep 17 00:00:00 2001 From: Tarun Chinmai Sekar Date: Thu, 25 Jul 2024 15:09:23 -0700 Subject: [PATCH] Check for nil before calling IsKnown() --- pkg/controller/external_tfpluginfw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/external_tfpluginfw.go b/pkg/controller/external_tfpluginfw.go index 61785af0..cf5b6971 100644 --- a/pkg/controller/external_tfpluginfw.go +++ b/pkg/controller/external_tfpluginfw.go @@ -279,7 +279,7 @@ func (n *terraformPluginFrameworkExternalClient) getDiffPlanResponse(ctx context // parametrizable attributes. filteredDiff := make([]tftypes.ValueDiff, 0) for _, diff := range rawDiff { - if diff.Value1.IsKnown() && !diff.Value1.IsNull() { + if diff.Value1 != nil && diff.Value1.IsKnown() && !diff.Value1.IsNull() { filteredDiff = append(filteredDiff, diff) } }