Edje_Part_Description_Common *data; \
\
data = eina_mempool_malloc(_emp_##Type, size); \
- memset(data, 0, size); \
- data->clip_to_id = -1; \
- data->map.zoom.x = data->map.zoom.y = 1.0; \
- data->map.zoom.id_center = -1; \
+ // TIZEN_ONLY(20230404): Add null check for data to prevent crash from calling methods on null object
+ if (data != NULL) \
+ { \
+ memset(data, 0, size); \
+ data->clip_to_id = -1; \
+ data->map.zoom.x = data->map.zoom.y = 1.0; \
+ data->map.zoom.id_center = -1; \
+ } \
+ //
+ \
return data; \
} \
\