diff --git a/src/Mod/PartDesign/App/FeatureHole.cpp b/src/Mod/PartDesign/App/FeatureHole.cpp index 2fa37d1018..cc16eb0ac4 100644 --- a/src/Mod/PartDesign/App/FeatureHole.cpp +++ b/src/Mod/PartDesign/App/FeatureHole.cpp @@ -2000,7 +2000,7 @@ TopoDS_Compound Hole::findHoles(const TopoDS_Shape& profileshape, Handle(Geom_Curve) c = BRep_Tool::Curve(edge, c_start, c_end); // Circle? - if (c->DynamicType() != STANDARD_TYPE(Geom_Circle)) { + if (c.IsNull() || c->DynamicType() != STANDARD_TYPE(Geom_Circle)) { continue; }