edje - + null checking.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 26 Mar 2012 11:00:25 +0000 (11:00 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 26 Mar 2012 11:00:25 +0000 (11:00 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@69635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index 4ce22b5..d9b73bd 100644 (file)
@@ -673,9 +673,10 @@ edje_object_color_class_del(Evas_Object *obj, const char *color_class)
    Edje_Color_Class *cc = NULL;
    unsigned int i;
 
-   if (!color_class) return;
-
    ed = _edje_fetch(obj);
+
+   if ((!ed) || (!color_class)) return;
+
    EINA_LIST_FOREACH(ed->color_classes, l, cc)
      {
        if (!strcmp(cc->name, color_class))