From 81730dd2151a4d3fe5fcb320aedca004a3b20cde Mon Sep 17 00:00:00 2001 From: Igor Ignatyev Date: Fri, 17 Oct 2025 16:11:24 +0300 Subject: [PATCH] GetKeyValue, add nil check to comply any field type --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index c72e47f..8ed44ed 100644 --- a/plugin.go +++ b/plugin.go @@ -380,7 +380,7 @@ func keyValueFromTty(item *KeyValueItem, in *os.File, out *os.File) error { item.Key = strings.TrimSpace(username) } - if item.Value == "" { + if item.Value == "" || item.Value == nil { if showKeyHelp { fmt.Fprintf(out, "Enter value of '%s':", item.Key) } else {