null check for color_class_list
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 10 Sep 2011 20:39:24 +0000 (20:39 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 10 Sep 2011 20:39:24 +0000 (20:39 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@63319 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index 67f5eb6..26e2953 100644 (file)
@@ -518,6 +518,8 @@ edje_color_class_list(void)
 {
    Edje_List_Foreach_Data fdata;
 
+   if (!color_class) return NULL;
+
    memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
    eina_hash_foreach(_edje_color_class_member_hash,
                      _edje_color_class_list_foreach, &fdata);