edje_calc: fix check return of _edje_fetch

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
This commit is contained in:
Jaehyun Cho 2022-02-24 17:26:36 +09:00 committed by Carsten Haitzler (Rasterman)
parent 6618de1f4a
commit 076ab65180
1 changed files with 2 additions and 4 deletions

View File

@ -4082,10 +4082,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;