From: Carsten Haitzler Date: Sat, 8 Dec 2012 15:19:00 +0000 (+0000) Subject: lets not add all sorts of null object access fun! X-Git-Tag: submit/devel/efl/20131022.203902~2991 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f74c3dae7527665455588647e744e2250cfabe39;p=platform%2Fupstream%2Fefl.git lets not add all sorts of null object access fun! SVN revision: 80523 --- diff --git a/legacy/edje/src/lib/edje_calc.c b/legacy/edje/src/lib/edje_calc.c index b80912a..5fb5c0e 100644 --- a/legacy/edje/src/lib/edje_calc.c +++ b/legacy/edje/src/lib/edje_calc.c @@ -3319,9 +3319,10 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta } else { - eo_do(mo, - evas_obj_map_set(map), - evas_obj_map_enable_set(1)); + if (mo) + eo_do(mo, + evas_obj_map_set(map), + evas_obj_map_enable_set(1)); } } else @@ -3338,9 +3339,10 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta if (!ep->body) { #endif - eo_do(mo, - evas_obj_map_enable_set(0), - evas_obj_map_set(NULL)); + if (mo) + eo_do(mo, + evas_obj_map_enable_set(0), + evas_obj_map_set(NULL)); #ifdef HAVE_EPHYSICS } #endif