edje: don't compile if we have a group without a name
authoryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Aug 2012 08:57:35 +0000 (08:57 +0000)
committeryoz <yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 9 Aug 2012 08:57:35 +0000 (08:57 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@75035 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_out.c

index 1c22637..5da6292 100644 (file)
@@ -2052,6 +2052,11 @@ data_process_lookups(void)
         unsigned int id = 0;
         unsigned int i;
 
+        if (!pc->part)
+          {
+             ERR("A collection without a name was detected, that's not allowed.");
+             exit(-1);
+          }
         find = eina_hash_find(edje_file->collection, pc->part);
         if (find && find->id == pc->id)
           continue ;