[edje_load]: This code adds a safety check so that edje does not crash
authorshilpa singh <shilpa.singh@samsung.com>
Wed, 26 Jun 2013 16:25:26 +0000 (21:55 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 2 Jul 2013 02:05:28 +0000 (11:05 +0900)
if ep pointer is NULL

Change-Id: I55e204fec191c0a7bf4040fedf5c92a67555228f

src/lib/edje_load.c

index 4594688..bd0c214 100644 (file)
@@ -437,7 +437,7 @@ _edje_object_file_set_internal(Evas_Object *obj, const char *file, const char *g
                  ep = ed->collection->parts[i];
 
                  /* Register any color classes in this parts descriptions. */
-                 if ((ep->default_desc) && (ep->default_desc->color_class))
+                 if ( ep && (ep->default_desc) && (ep->default_desc->color_class))
                    _edje_color_class_member_add(ed, ep->default_desc->color_class);
 
                  for (k = 0; k < ep->other.desc_count; k++)