zmike pushed a commit to branch efl-1.22.

http://git.enlightenment.org/core/efl.git/commit/?id=625c2a022719cd2cd4a705f5746a70b4999c60cf

commit 625c2a022719cd2cd4a705f5746a70b4999c60cf
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed May 29 09:31:28 2019 -0400

    elm_widget_item_static_focus: check for adapter existence in unrealize cb
    
    Summary:
    adapter can be null if it was previously destroyed
    
    @fix
    
    Depends on D9001
    
    Reviewers: bu5hm4n
    
    Reviewed By: bu5hm4n
    
    Subscribers: bu5hm4n, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D9002
---
 src/lib/elementary/elm_widget_item_static_focus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_widget_item_static_focus.c 
b/src/lib/elementary/elm_widget_item_static_focus.c
index f75aacb956..f040cbcf4c 100644
--- a/src/lib/elementary/elm_widget_item_static_focus.c
+++ b/src/lib/elementary/elm_widget_item_static_focus.c
@@ -68,7 +68,7 @@ _unrealized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
    if (pd) /* if the obect is dead pd is NULL */
      {
         //only delete the adapter when not focused, this will lead to awfull 
artifacts
-        if (!efl_ui_focus_object_focus_get(pd->adapter))
+        if (pd->adapter && (!efl_ui_focus_object_focus_get(pd->adapter)))
           {
              pd->in_unrealize = EINA_TRUE;
              efl_del(pd->adapter);

-- 


Reply via email to