fix possible null real part lookup in edje

reap part get is always checked.. except here. check and be safe.

fixes CID 1039331
This commit is contained in:
Carsten Haitzler 2014-08-22 18:13:49 +09:00
parent 48f45da5fb
commit 855cc98ee4
1 changed files with 5 additions and 3 deletions

View File

@ -1212,9 +1212,11 @@ _edje_object_collect(Edje *ed)
Edje_Real_Part *rp;
rp = _edje_real_part_recursive_get(&ed, eud->part);
if (rp->part->type != EDJE_PART_TYPE_TABLE) continue ;
_edje_real_part_table_unpack(eud->ed, rp, eud->u.table.child);
if (rp)
{
if (rp->part->type != EDJE_PART_TYPE_TABLE) continue;
_edje_real_part_table_unpack(eud->ed, rp, eud->u.table.child);
}
break;
}
case EDJE_USER_SWALLOW: