summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-12-21 12:28:44 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-04-19 13:32:00 +0200
commitb61bc8ddc7f480599f174c9d35db203fd1654cd3 (patch)
tree1b90fa0058c15272b075127515dc8d9e2a4d583f
parent2d0c441bf99526e1da459066861346a326c10ada (diff)
downloadefl-b61bc8ddc7f480599f174c9d35db203fd1654cd3.tar.gz
efl_ui_focus_manager: there is the case that n can be NULL
-rw-r--r--src/lib/elementary/efl_ui_focus_manager.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_focus_manager.c b/src/lib/elementary/efl_ui_focus_manager.c
index 3ec1c7a5d0..7f650f3865 100644
--- a/src/lib/elementary/efl_ui_focus_manager.c
+++ b/src/lib/elementary/efl_ui_focus_manager.c
@@ -1178,10 +1178,13 @@ _efl_ui_focus_manager_move(Eo *obj EINA_UNUSED, Efl_Ui_Focus_Manager_Data *pd, E
if (direction == EFL_UI_FOCUS_DIRECTION_NEXT ||
direction == EFL_UI_FOCUS_DIRECTION_PREV)
{
- n = T(n).parent;
- new_candidate = _request_move(obj, pd, direction, n);
- efl_ui_focus_manager_focus(obj, new_candidate);
- candidate = new_candidate;
+ if (n)
+ {
+ n = T(n).parent;
+ new_candidate = _request_move(obj, pd, direction, n);
+ efl_ui_focus_manager_focus(obj, new_candidate);
+ candidate = new_candidate;
+ }
}
else
{