add: if (!pl) continue;
context: processSubmenu(WEditMenu *menu){    WEditMenuItem *item;    proplist_t pmenu;    proplist_t pl;    char *s;    int i;            s = WGetEditMenuTitle(menu);    pl = PLMakeString(s);    pmenu = PLMakeArrayFromElements(pl, NULL);    i = 0;    while ((item = WGetEditMenuItem(menu, i++))) {	WEditMenu *submenu;	s = WGetEditMenuItemTitle(item);		submenu = WGetEditMenuSubmenu(menu, item);	if (submenu) {	    pl = processSubmenu(submenu); 	} else {	    pl = processData(s, WGetEditMenuItemData(item));	}	PLAppendArrayElement(pmenu, pl);    }        return pmenu;}