From a1471ccd08c29e8666f6853e5f17fa8f54a32fc8 Mon Sep 17 00:00:00 2001 From: cedric Date: Wed, 19 Oct 2011 12:15:41 +0000 Subject: [PATCH] elementary: check against NULL widget also. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64175 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_widget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index 42985c4..c304163 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -653,7 +653,7 @@ EAPI void elm_widget_tree_dot_dump(const Evas_Object *top, FILE *out if (!elm_widget_is_check(obj)) return #define ELM_CHECK_WIDTYPE(obj, widtype) \ - if (!elm_widget_type_check((obj), (widtype), __func__)) return + if (!obj || !elm_widget_type_check((obj), (widtype), __func__)) return #define ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, ...) \ ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *)it, __VA_ARGS__); \ -- 2.7.4