Index: trunk/src/find_geo.c =================================================================== --- trunk/src/find_geo.c (revision 35249) +++ trunk/src/find_geo.c (revision 35250) @@ -919,7 +919,11 @@ if (!proto->hplated) return 0; - slshape = pcb_pstk_shape_mech_or_hole_at(PCB, ps, line->parent.layer, &sltmp); + if (line->parent.layer != NULL) + slshape = pcb_pstk_shape_mech_or_hole_at(PCB, ps, line->parent.layer, &sltmp); + else + slshape = pcb_pstk_shape_mech_or_hole_(ps, proto, &sltmp); /* this happens when called from a line shaped padstack - there's no known layer ID, assume anylayer */ + if (slshape == NULL) return rnd_false; return pcb_isc_pstk_line_shp(ctx, ps, line, slshape);