diff --git a/src/Mod/Part/App/Attacher.cpp b/src/Mod/Part/App/Attacher.cpp index 0fcd21866..bc2833098 100644 --- a/src/Mod/Part/App/Attacher.cpp +++ b/src/Mod/Part/App/Attacher.cpp @@ -351,6 +351,9 @@ void AttachEngine::EnableAllSupportedModes() eRefType AttachEngine::getShapeType(const TopoDS_Shape& sh) { + if(sh.IsNull()) + return rtAnything; + switch (sh.ShapeType()){ case TopAbs_SHAPE: return rtAnything; //note: there's no rtPart detection here - not enough data!