forked from enlightenment/efl
evas: Fix crash when object is not fully created
This fixes make check.
This commit is contained in:
parent
60e31101a6
commit
94d0967fad
|
@ -2739,6 +2739,9 @@ _efl_canvas_object_event_animation_set(Eo *eo_obj,
|
|||
if (!_efl_animation_event_type_is_valid(event_type))
|
||||
return;
|
||||
|
||||
// This may happen if the object never was fully created.
|
||||
if (!pd->event_anims) return;
|
||||
|
||||
Event_Animation *event_anim =
|
||||
eina_array_data_get(pd->event_anims, event_type);
|
||||
if (!event_anim) return;
|
||||
|
|
Loading…
Reference in New Issue