From e19900b45e2a4634dcf42bb9c8a81fbb86dc7caf Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 12 Aug 2025 22:53:50 +0200 Subject: [PATCH] Protect against nil stringOption. --- galenectl/galenectl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/galenectl/galenectl.go b/galenectl/galenectl.go index edf4fd7..a6e95d3 100644 --- a/galenectl/galenectl.go +++ b/galenectl/galenectl.go @@ -1001,6 +1001,9 @@ func (o *stringOption) Set(value string) error { } func (o *stringOption) String() string { + if o == nil { + return "(nil)" + } if !o.set { return "(unset)" }