hermet pushed a commit to branch master.

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

commit c5ee73d54f8f84e3f1d858f7d2c6c4395aa1ab88
Author: ChunEon Park <[email protected]>
Date:   Thu Feb 6 00:16:59 2014 +0900

    win - +null object checking.
    
    it allows previous highlighted object is empty.
    So it should be checked before accessing.
---
 src/lib/elm_win.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index de10924..2f02652 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -803,7 +803,8 @@ _elm_win_focus_highlight_reconfigure(Elm_Win_Smart_Data *sd)
    if ((!target) || (!common_visible) || (sd->focus_highlight.cur.in_theme))
      goto the_end;
 
-   focus_style_previous = elm_widget_focus_highlight_style_get(previous);
+   if (previous)
+     focus_style_previous = elm_widget_focus_highlight_style_get(previous);
    focus_style_target = elm_widget_focus_highlight_style_get(target);
 
    if (sd->focus_highlight.theme_changed ||

-- 


Reply via email to