evas seat focus add - handle other case where layer may be null

fix CID 1377522
This commit is contained in:
Carsten Haitzler 2017-07-23 19:30:31 +09:00
parent bb7e8456c4
commit 3826f21a29
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}