From da4d6fb63462900341f013030e4bfd4ddc3c0b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=28=D0=A5?= =?UTF-8?q?=D1=80=D0=B0=D0=BC=D1=8B=D1=87=D0=AA=29=20=D0=A5=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Sat, 16 Aug 2025 12:56:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B8=20=D0=BD=D1=83=D0=BB=D0=B5=D0=B2=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/convert/convert.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/convert/convert.go b/internal/convert/convert.go index 2deadfb..49b7c47 100644 --- a/internal/convert/convert.go +++ b/internal/convert/convert.go @@ -28,6 +28,11 @@ func convert(val reflect.Value) (starlark.Value, error) { return starlark.None, nil } + // Check for zero value (uninitialized) + if val == (reflect.Value{}) { + return starlark.None, nil + } + switch val.Kind() { case reflect.Interface: if val.IsNil() {