evas: Fix crash when object is not fully created

This fixes make check.
This commit is contained in:
Jean-Philippe Andre 2017-10-13 14:29:15 +09:00
parent 60e31101a6
commit 94d0967fad
1 changed files with 3 additions and 0 deletions

View File

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