raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=7b219a9e9959ff7cbb2a0f611790df2f1ea8933e
commit 7b219a9e9959ff7cbb2a0f611790df2f1ea8933e Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Mon Sep 1 19:35:44 2014 +0900 emotion test - fix lack of null checks in test code fix CID 1232081 1232080 1232079 1232078 1232077 --- src/tests/emotion/emotion_test_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/emotion/emotion_test_main.c b/src/tests/emotion/emotion_test_main.c index 5b27980..24ab7db 100644 --- a/src/tests/emotion/emotion_test_main.c +++ b/src/tests/emotion/emotion_test_main.c @@ -504,6 +504,7 @@ video_obj_signal_frame_move_start_cb(void *data EINA_UNUSED, Evas_Object *o, con Evas_Coord x, y; fd = evas_object_data_get(o, "frame_data"); + if (!fd) return; fd->moving = 1; evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y); fd->x = x; @@ -517,6 +518,7 @@ video_obj_signal_frame_move_stop_cb(void *data EINA_UNUSED, Evas_Object *o, cons Frame_Data *fd; fd = evas_object_data_get(o, "frame_data"); + if (!fd) return; fd->moving = 0; } @@ -527,6 +529,7 @@ video_obj_signal_frame_resize_start_cb(void *data EINA_UNUSED, Evas_Object *o, c Evas_Coord x, y; fd = evas_object_data_get(o, "frame_data"); + if (!fd) return; fd->resizing = 1; evas_pointer_canvas_xy_get(evas_object_evas_get(o), &x, &y); fd->x = x; @@ -540,6 +543,7 @@ video_obj_signal_frame_resize_stop_cb(void *data EINA_UNUSED, Evas_Object *o, co Frame_Data *fd; fd = evas_object_data_get(o, "frame_data"); + if (!fd) return; fd->resizing = 0; } @@ -549,6 +553,7 @@ video_obj_signal_frame_move_cb(void *data EINA_UNUSED, Evas_Object *o, const cha Frame_Data *fd; fd = evas_object_data_get(o, "frame_data"); + if (!fd) return; if (fd->moving) { Evas_Coord x, y, ox, oy; --
