win: Check null before calling elm_widget_highlight_in_theme_get(). It
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 15 Jan 2014 17:33:46 +0000 (02:33 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 15 Jan 2014 17:33:46 +0000 (02:33 +0900)
can be null.

'target' can be null when the focus in is just called.

src/lib/elm_win.c

index 637612a..072cee9 100644 (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);