From: Jean-Philippe Andre Date: Fri, 13 Oct 2017 05:29:15 +0000 (+0900) Subject: evas: Fix crash when object is not fully created X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~2262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94d0967fadfb3d5b7475d9d189b0f9edad86c83a;p=platform%2Fupstream%2Fefl.git evas: Fix crash when object is not fully created This fixes make check. --- diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c index 45b4790..a6f9471 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, 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;