From c66b811d4827ab4db5901be29deffabad55c4976 Mon Sep 17 00:00:00 2001 From: "jh0506.yun" Date: Tue, 7 Sep 2010 21:06:51 +0900 Subject: [PATCH] [elm_selectioninfo,elm_pagecontrol] Added exception handling --- src/lib/elm_pagecontrol.c | 2 ++ src/lib/elm_selectioninfo.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lib/elm_pagecontrol.c b/src/lib/elm_pagecontrol.c index f9a34a1..5d972e5 100644 --- a/src/lib/elm_pagecontrol.c +++ b/src/lib/elm_pagecontrol.c @@ -198,6 +198,8 @@ _layout(Evas_Object *o, Evas_Object_Box_Data *priv, void *data) EAPI Evas_Object * elm_page_control_add(Evas_Object *parent) { + if (!parent) return NULL; + Evas_Object *obj; Evas *e; Widget_Data *wd; diff --git a/src/lib/elm_selectioninfo.c b/src/lib/elm_selectioninfo.c index d3f3d17..3b6381d 100644 --- a/src/lib/elm_selectioninfo.c +++ b/src/lib/elm_selectioninfo.c @@ -170,6 +170,8 @@ _parent_hide(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void * EAPI Evas_Object * elm_selectioninfo_add(Evas_Object *parent) { + if (!parent) return NULL; + Evas_Object *obj; Evas *e; Widget_Data *wd; -- 2.7.4