Edje: edje_fetch can return NULL so we should check that we have a
authorChristopher Michael <cpmichael1@comcast.net>
Mon, 10 Sep 2012 08:00:59 +0000 (08:00 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Mon, 10 Sep 2012 08:00:59 +0000 (08:00 +0000)
valid edje from the parent before trying to use it.

SVN revision: 76371

legacy/edje/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: ???