It is possible that evas_object_data_get here does not return an Edje,
so check the return value. This fixes a coverity reported issue.
@fix
CID1349866
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
/* the object is already swallowed in the requested part */
if (rpcur == rp) return EINA_TRUE;
sed = evas_object_data_get(obj_swallow, ".edje");
- /* The object is already swallowed somewhere, unswallow it first */
- edje_object_part_unswallow(sed->obj, obj_swallow);
+ if (sed)
+ {
+ /* The object is already swallowed somewhere, unswallow it first */
+ edje_object_part_unswallow(sed->obj, obj_swallow);
+ }
}
if (!rp)