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) {