summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-10 21:23:20 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-10 21:23:20 +0900
commit98f2c3d5eed611d0e68b77de41c317cb8fb42e6f (patch)
treed8d295b3236ed1fc0feaef19118ed73454b8fb81 /src/lib/evas
parent7f727c13666f20adc48513a3c039cd201d2f2d68 (diff)
evas object: + null check for safety
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_object_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_main.c b/src/lib/evas/canvas/evas_object_main.c
index eff1188eb0..82eee8aad2 100644
--- a/src/lib/evas/canvas/evas_object_main.c
+++ b/src/lib/evas/canvas/evas_object_main.c
@@ -171,6 +171,8 @@ _evas_object_pointer_data_get(Evas_Pointer_Data *evas_pdata,
171{ 171{
172 Evas_Object_Pointer_Data *pdata; 172 Evas_Object_Pointer_Data *pdata;
173 173
174 if (!obj) return NULL;
175
174 pdata = evas_object_pointer_data_find(obj, evas_pdata->pointer); 176 pdata = evas_object_pointer_data_find(obj, evas_pdata->pointer);
175 177
176 //The pointer does not exist yet - create one. 178 //The pointer does not exist yet - create one.