seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b710d1581bb9c8b3a5c5031baed42212021e753c

commit b710d1581bb9c8b3a5c5031baed42212021e753c
Author: Daniel Juyung Seo <[email protected]>
Date:   Thu Jan 16 02:33:46 2014 +0900

    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.
---
 src/lib/elm_win.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 637612a..072cee9 100644
--- a/src/lib/elm_win.c
+++ b/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);

-- 


Reply via email to