--- a\src\iup_layoutdlg.c	Thu Aug 10 16:06:18 2017
+++ b\src\iup_layoutdlg.c	Thu Jan 11 23:33:53 2018
@@ -1870,7 +1870,7 @@
       IupSetAttribute(setbut, "ACTIVE", "Yes");
       IupSetAttribute(txt1, "READONLY", "No");
 
-      if (strstr(name, "COLOR") != NULL)
+      if (value != NULL && strstr(name, "COLOR") != NULL)
       {
         IupStoreAttribute(colorbut, "BGCOLOR", value);
         IupSetAttribute(colorbut, "VISIBLE", "Yes");
