edje - fix null return check in src description get

fix CID 1210812 1210811
This commit is contained in:
Carsten Haitzler 2014-08-27 17:30:42 +09:00
parent 1383f025d3
commit 4124ed6946
1 changed files with 2 additions and 0 deletions

View File

@ -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