From dcc2c091d55f34dd19417b5fa15bba23d3be3a95 Mon Sep 17 00:00:00 2001 From: Katrina Rogan Date: Thu, 2 Sep 2021 10:12:57 -0700 Subject: [PATCH] Fix panic in rendering LP input descriptions (#174) Signed-off-by: Katrina Rogan --- flytectl/cmd/get/launch_plan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flytectl/cmd/get/launch_plan.go b/flytectl/cmd/get/launch_plan.go index c5b7e7e581..6ef85d6cb3 100644 --- a/flytectl/cmd/get/launch_plan.go +++ b/flytectl/cmd/get/launch_plan.go @@ -129,7 +129,7 @@ func LaunchplanToTableProtoMessages(l []*admin.LaunchPlan) []proto.Message { for _, m := range l { m := proto.Clone(m).(*admin.LaunchPlan) if m.Closure != nil { - if m.Closure.ExpectedInputs != nil { + if m.Closure.ExpectedInputs != nil && m.Closure.ExpectedInputs.Parameters != nil { printer.FormatParameterDescriptions(m.Closure.ExpectedInputs.Parameters) } if m.Closure.ExpectedOutputs != nil && m.Closure.ExpectedOutputs.Variables != nil {