Index: trunk/src_plugins/io_tedax/tetest.c =================================================================== --- trunk/src_plugins/io_tedax/tetest.c (revision 37853) +++ trunk/src_plugins/io_tedax/tetest.c (revision 37854) @@ -131,7 +131,8 @@ tedax_fprint_escape(f, etestid); fputc('\n', f); - for(b = rnd_r_first(pcb->Data->padstack_tree, &it); b != NULL; b = rnd_r_next(&it)) { + if (pcb->Data->padstack_tree != NULL) + for(b = rnd_rtree_all_first(&it, pcb->Data->padstack_tree); b != NULL; b = rnd_rtree_all_next(&it)) { pcb_pstk_t *ps = (pcb_pstk_t *)b; pcb_subc_t *sc; pcb_net_term_t *t;