Index: src/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/object.c =================================================================== --- src/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/object.c (revision 681) +++ src/pcb-gpmi/gpmi_plugin/gpmi_pkg/layout/object.c (revision 682) @@ -79,6 +79,9 @@ { void *what = NULL;; + if (obj == NULL) + return -1; + switch(obj->type) { case OM_LINE: switch(coord) { @@ -124,6 +127,8 @@ int layout_arc_angles(layout_object_t *obj, int relative, int start, int delta) { + if (obj == NULL) + return -1; if (obj->type != OM_ARC) return 1; if (relative) {