diff --git a/src/Mod/PartDesign/App/FeatureHole.cpp b/src/Mod/PartDesign/App/FeatureHole.cpp index 69c2ed804b..c4b55787e4 100644 --- a/src/Mod/PartDesign/App/FeatureHole.cpp +++ b/src/Mod/PartDesign/App/FeatureHole.cpp @@ -2116,6 +2116,9 @@ App::DocumentObjectExecReturn* Hole::execute() } std::vector holes; auto compound = findHoles(holes, profileshape, protoHole); + if (holes.empty()) { + return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Hole error: Finding axis failed")); + } TopoShape result(0);