aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_focus.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-23 19:30:31 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-23 19:30:31 +0900
commit3826f21a295cd16888b5b7bfa4230be24b77f7f9 (patch)
tree1f26edb09554f151945af86ddfca4528371a1e5c /src/lib/evas/canvas/evas_focus.c
parenteina debug timer - handle fail wakeup write with error complaint (diff)
downloadefl-3826f21a295cd16888b5b7bfa4230be24b77f7f9.tar.gz
evas seat focus add - handle other case where layer may be null
fix CID 1377522
Diffstat (limited to 'src/lib/evas/canvas/evas_focus.c')
-rw-r--r--src/lib/evas/canvas/evas_focus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_focus.c b/src/lib/evas/canvas/evas_focus.c
index 65df3183af..6fc1ebaad2 100644
--- a/src/lib/evas/canvas/evas_focus.c
+++ b/src/lib/evas/canvas/evas_focus.c
@@ -246,7 +246,8 @@ _efl_canvas_object_seat_focus_add(Eo *eo_obj,
_evas_focus_dispatch_event(obj, seat, EINA_TRUE);
end:
- _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
+ if (obj->layer)
+ _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
return EINA_TRUE;
}