efl_ui_focus_manager_calc: do not crash for the case of a invalid child

This commit is contained in:
Marcel Hollerbach 2018-03-28 10:45:17 +02:00
parent 8fa22f2ab7
commit 28201f32a6
1 changed files with 2 additions and 0 deletions

View File

@ -1951,6 +1951,8 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_request_subchild(Eo *obj, Efl_Ui
Node *child, *target;
child = node_get(obj, pd, child_obj);
if (!child) return NULL;
target = _request_subchild(child);
if (target) return target->focusable;