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);
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;