From c2ea4da87887ddd0864048c93cc1eaec38a02df7 Mon Sep 17 00:00:00 2001 From: Arvid Warnecke Date: Wed, 3 Apr 2024 11:45:04 +0200 Subject: [PATCH] [fix] Only reference the Description if it's not nil. --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 48cc9cf..6db4219 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,9 @@ func fetchChangeSets(cfSvc *cloudformation.CloudFormation, stackName *string) (C if v.CreationTime != nil { changeset.creationTime = *v.CreationTime } - changeset.description = *v.Description + if v.Description != nil { + changeset.description = *v.Description + } changeset.executionStatus = *v.ExecutionStatus changeset.stackID = *v.StackId changeset.stackName = *v.StackName