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.
This commit is contained in:
Daniel Juyung Seo 2014-01-16 02:33:46 +09:00
parent b1743d7d16
commit 7dd5fe10af
1 changed files with 1 additions and 1 deletions

View File

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