From 7dd5fe10af0dab5ce7ad5b13ca3ad38007d958cb Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 16 Jan 2014 02:33:46 +0900 Subject: [PATCH] win: Check null before calling elm_widget_highlight_in_theme_get(). It can be null. 'target' can be null when the focus in is just called. --- legacy/elementary/src/lib/elm_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c index 637612a533..072cee9186 100644 --- a/legacy/elementary/src/lib/elm_win.c +++ b/legacy/elementary/src/lib/elm_win.c @@ -1373,7 +1373,7 @@ _elm_win_object_focus_in(void *data, target = _elm_win_focus_target_get(obj); sd->focus_highlight.cur.target = target; - if (elm_widget_highlight_in_theme_get(target)) + if (target && elm_widget_highlight_in_theme_get(target)) sd->focus_highlight.cur.handled = EINA_TRUE; else _elm_win_focus_target_callbacks_add(sd);