From 2ee1dd770db653eb2e25fe4788b6d1b269a75509 Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Thu, 24 Mar 2011 17:18:06 +0900 Subject: [PATCH] Els_icon: add null check code for H0100121203 Change-Id: Ie156d1281d1bbcae3de7b937cecea083549d22d2 --- src/lib/els_icon.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/lib/els_icon.c diff --git a/src/lib/els_icon.c b/src/lib/els_icon.c old mode 100644 new mode 100755 index daa0373..ac2959e --- a/src/lib/els_icon.c +++ b/src/lib/els_icon.c @@ -167,7 +167,9 @@ _els_smart_icon_size_get(const Evas_Object *obj, int *w, int *h) sd = evas_object_smart_data_get(obj); if (!sd) return; - if (!strcmp(evas_object_type_get(sd->obj), "edje")) + + const char *type = evas_object_type_get(sd->obj); + if ((type) && !strcmp(type, "edje")) edje_object_size_min_get(sd->obj, &tw, &th); else evas_object_image_size_get(sd->obj, &tw, &th); @@ -424,7 +426,9 @@ _smart_reconfigure(Smart_Data *sd) Evas_Coord x, y, w, h; if (!sd->obj) return; - if (!strcmp(evas_object_type_get(sd->obj), "edje")) + + const char *type = evas_object_type_get(sd->obj); + if ((type) && !strcmp(type, "edje")) { w = sd->w; h = sd->h; -- 2.7.4