Edje: edje_fetch can return NULL so we should check that we have a
authordevilhorns <devilhorns>
Mon, 10 Sep 2012 08:00:59 +0000 (08:00 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 10 Sep 2012 08:00:59 +0000 (08:00 +0000)
valid edje from the parent before trying to use it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@76371 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index 093145b..17e284f 100644 (file)
@@ -2499,7 +2499,7 @@ _recalc_extern_parent(Evas_Object *obj)
    Edje *ed;
 
    parent = evas_object_smart_parent_get(obj);
-   ed = _edje_fetch(parent);
+   if (!(ed = _edje_fetch(parent))) return;
 
    ed->dirty = EINA_TRUE;
    ed->recalc_call = EINA_TRUE; // ZZZ: ???