seoz pushed a commit to branch master.

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

commit 7bc07ebf3337b328dfb6529435dbbb519aa2e000
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Mon Jan 13 23:09:25 2014 +0900

    inwin, layout: Check null before calling eo_isa.
---
 src/lib/elm_inwin.c  | 2 +-
 src/lib/elm_layout.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_inwin.c b/src/lib/elm_inwin.c
index 11266f9..6b3d15a 100644
--- a/src/lib/elm_inwin.c
+++ b/src/lib/elm_inwin.c
@@ -118,7 +118,7 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list 
EINA_UNUSED)
 
    eo_do(obj, eo_parent_get(&parent));
 
-   if (!eo_isa(parent, ELM_OBJ_WIN_CLASS))
+   if (parent && !eo_isa(parent, ELM_OBJ_WIN_CLASS))
      {
         eo_error_set(obj);  /* *has* to have a parent window */
         return;
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index 7666449..172be28 100644
--- a/src/lib/elm_layout.c
+++ b/src/lib/elm_layout.c
@@ -2209,7 +2209,7 @@ _dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list 
*list)
    eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
    ELM_WIDGET_DATA_GET_OR_RETURN(eo_obj, wd);
 
-   if (eo_isa(wd->resize_obj, EDJE_OBJ_CLASS))
+   if (wd->resize_obj && eo_isa(wd->resize_obj, EDJE_OBJ_CLASS))
      {
         Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME);
         const char *file, *edje_group;

-- 


Reply via email to