edje_calc: fix check return of _edje_fetch 58/270858/2
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 10 Feb 2022 07:26:25 +0000 (16:26 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 10 Feb 2022 08:36:36 +0000 (17:36 +0900)
Summary: checks if _edje_fetch returns null before calling _edje_recalc_do.

Reviewers: Hermet, raster, kimcinoo, jsuya

Reviewed By: jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12322

Change-Id: Id1c680e79abd348fa5cc888f0e50334fc93571c5

src/lib/edje/edje_calc.c

index 851f5f4..aee7f30 100644 (file)
@@ -4194,10 +4194,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
           }
         if (edje_object_update_hints_get(ep->typedata.swallow->swallowed_object))
           {
-             Edje *ted;
-
-             ted = _edje_fetch(ep->typedata.swallow->swallowed_object);
-             _edje_recalc_do(ted);
+             Edje *ted = _edje_fetch(ep->typedata.swallow->swallowed_object);
+             if (ted) _edje_recalc_do(ted);
           }
 
         Edje_Size *min = NULL, *max = NULL;