[src/lib/elm_genlist.c] Added exception handling codes.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 4 Oct 2010 15:20:53 +0000 (00:20 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 4 Oct 2010 15:20:53 +0000 (00:20 +0900)
src/lib/elm_genlist.c

index 35cdb37..acaa979 100644 (file)
@@ -2956,6 +2956,7 @@ elm_genlist_add(Evas_Object *parent)
    Evas_Coord minw, minh;
    static Evas_Smart *smart = NULL;
 
+       if (!parent) return NULL;
    wd = ELM_NEW(Widget_Data);
    e = evas_object_evas_get(parent);
    obj = elm_widget_add(e);