diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-23 19:30:31 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-23 19:30:31 +0900 |
commit | 3826f21a295cd16888b5b7bfa4230be24b77f7f9 (patch) | |
tree | 1f26edb09554f151945af86ddfca4528371a1e5c | |
parent | bb7e8456c4102ea05140d16c6d3e8154f2f74401 (diff) | |
download | efl-3826f21a295cd16888b5b7bfa4230be24b77f7f9.tar.gz |
evas seat focus add - handle other case where layer may be null
fix CID 1377522
-rw-r--r-- | src/lib/evas/canvas/evas_focus.c | 3 |
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; } |