Skip to content

Commit bc2fa0e

Browse files
committed
[[ Bug 15851 ]] Fix error returning swatchColor when it is empty
1 parent ba4c3d2 commit bc2fa0e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

extensions/widgets/colorswatch/colorswatch.lcb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ public handler setColor(in tColor as optional String) returns nothing
168168
end handler
169169

170170
public handler getColor() returns String
171-
return colorToString(mColor)
171+
if mColor is nothing then
172+
return ""
173+
else
174+
return colorToString(mColor)
175+
end if
172176
end handler
173177
----------
174178

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [15851] error getting swatchColor when it is empty

0 commit comments

Comments
 (0)