summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_main.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-10-13 14:29:15 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-10-13 14:29:15 +0900
commit94d0967fadfb3d5b7475d9d189b0f9edad86c83a (patch)
tree97e1a4eca791955c13c055fc7966773887041bb8 /src/lib/evas/canvas/evas_object_main.c
parent60e31101a66aa78b544f39cff6ba27cdc704deef (diff)
evas: Fix crash when object is not fully created
This fixes make check.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/evas_object_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index 45b47906c9..a6f9471eeb 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -2739,6 +2739,9 @@ _efl_canvas_object_event_animation_set(Eo *eo_obj,
2739 if (!_efl_animation_event_type_is_valid(event_type)) 2739 if (!_efl_animation_event_type_is_valid(event_type))
2740 return; 2740 return;
2741 2741
2742 // This may happen if the object never was fully created.
2743 if (!pd->event_anims) return;
2744
2742 Event_Animation *event_anim = 2745 Event_Animation *event_anim =
2743 eina_array_data_get(pd->event_anims, event_type); 2746 eina_array_data_get(pd->event_anims, event_type);
2744 if (!event_anim) return; 2747 if (!event_anim) return;