aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMyoungwoon Roy, Kim <myoungwoon.kim@samsung.com>2018-04-24 17:13:00 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-04-24 17:41:47 -0700
commite62b97814d9b1ab5bb9e80063860ef93a469fb44 (patch)
tree7ae43ef647faa463a70044857f7f9739e4c73d34
parentefl_ui_focus_composition: permit anything but adapters and widgets (diff)
downloadefl-e62b97814d9b1ab5bb9e80063860ef93a469fb44.tar.gz
evas_main: Add null exception handling
Summary: Need to check whether Evas_Public_Data is null or not before dereferencing it. Test Plan: Execute test suite Reviewers: raster, Hermet, cedric, jpeg, stefan_schmidt, Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5987 Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
-rw-r--r--src/lib/evas/canvas/evas_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 3b82098d2d..7eb512a308 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -1675,7 +1675,8 @@ _evas_canvas_efl_canvas_scene_objects_in_rectangle_get(Eo *eo_e EINA_UNUSED, Eva
EAPI Eina_List *
evas_objects_in_rectangle_get(const Evas_Canvas *eo_e, int x, int y, int w, int h, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects)
{
- return _efl_canvas_objects_in_rectangle_get_helper(eo_e, efl_data_scope_get(eo_e, EVAS_CANVAS_CLASS), x, y, w, h, include_pass_events_objects, include_hidden_objects);
+ EVAS_LEGACY_API(eo_e, e, NULL);
+ return _efl_canvas_objects_in_rectangle_get_helper(eo_e, e, x, y, w, h, include_pass_events_objects, include_hidden_objects);
}
/* font related api */