Don't put nulls in the list of programs, makes little sense.
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 3 Sep 2010 14:37:42 +0000 (14:37 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 3 Sep 2010 14:37:42 +0000 (14:37 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@51863 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_edit.c

index b4bcfb8..117bb6a 100644 (file)
@@ -4959,6 +4959,9 @@ edje_edit_programs_list_get(Evas_Object *obj)
        Edje_Program *epr;
 
        epr = ed->table_programs[i];
+        /* XXX: bad, we miss programs this way, but since you can't access
+         * them in any way without a name, better ignore them.  */
+        if (!epr->name) continue;
        progs = eina_list_append(progs, eina_stringshare_add(epr->name));
      }