[edje_util.c] edje_object_color_class_del() API - object NULL checking is added.
authorsumanth <sumanth.m@samsung.com>
Thu, 22 Mar 2012 05:52:17 +0000 (11:22 +0530)
committersumanth <sumanth.m@samsung.com>
Mon, 26 Mar 2012 11:16:17 +0000 (16:46 +0530)
Change-Id: I53fd01e26fcb24dd1931ec1bdf01739880047197

src/lib/edje_util.c

index 55db69e..83571ac 100644 (file)
@@ -673,9 +673,9 @@ 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))