From 938432d738cda7b689e92428698558408d0014c6 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Sun, 26 Jul 2026 15:36:36 +0300 Subject: [PATCH] Fixing --- propertyGet.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/propertyGet.go b/propertyGet.go index c8e493e..178f72c 100644 --- a/propertyGet.go +++ b/propertyGet.go @@ -114,7 +114,12 @@ func valueToColor(value any, session Session) (Color, Color, bool) { } func colorProperty(properties Properties, tag PropertyName, session Session) (Color, Color, bool) { - return valueToColor(properties.getRaw(tag), session) + value := properties.getRaw(tag) + if value == nil { + return 0, 0, false + } + + return valueToColor(value, session) } func valueToEnum(value any, tag PropertyName, session Session, defaultValue int) (int, bool) {