Index: trunk/src_plugins/report/drill.c =================================================================== --- trunk/src_plugins/report/drill.c (revision 37856) +++ trunk/src_plugins/report/drill.c (revision 37857) @@ -80,7 +80,8 @@ AllDrills = (pcb_drill_info_t *)calloc(1, sizeof(pcb_drill_info_t)); - for(pb = rnd_r_first(top->padstack_tree, &it); pb != NULL; pb = rnd_r_next(&it)) { + if (top->padstack_tree != NULL) + for(pb = rnd_rtree_all_first(&it, top->padstack_tree); pb != NULL; pb = rnd_rtree_all_next(&it)) { pcb_pstk_t *ps = (pcb_pstk_t *)pb; pcb_pstk_proto_t *proto = pcb_pstk_get_proto(ps); if (proto->hdia <= 0)