forked from enlightenment/efl
edje - fix null return check in src description get
fix CID 1210812 1210811
This commit is contained in:
parent
1383f025d3
commit
4124ed6946
|
@ -4451,6 +4451,7 @@ _edje_real_part_text_source_description_get(Edje_Real_Part *ep, Edje_Real_Part *
|
|||
ed2 = _edje_fetch(ep->typedata.text->source->typedata.swallow->swallowed_object);
|
||||
if (!ed2) return NULL;
|
||||
rp = _edje_real_part_recursive_get(&ed2, et->text.id_source_part);
|
||||
if (!rp) return NULL;
|
||||
et = (Edje_Part_Description_Text *)rp->chosen_description;
|
||||
}
|
||||
else
|
||||
|
@ -4472,6 +4473,7 @@ _edje_real_part_text_text_source_description_get(Edje_Real_Part *ep, Edje_Real_P
|
|||
ed2 = _edje_fetch(ep->typedata.text->text_source->typedata.swallow->swallowed_object);
|
||||
if (!ed2) return NULL;
|
||||
rp = _edje_real_part_recursive_get(&ed2, et->text.id_text_source_part);
|
||||
if (!rp) return NULL;
|
||||
et = (Edje_Part_Description_Text *)rp->chosen_description;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue