diff --git a/src/Mod/Part/App/FeatureMirroring.cpp b/src/Mod/Part/App/FeatureMirroring.cpp index 364df4fab..24db41620 100644 --- a/src/Mod/Part/App/FeatureMirroring.cpp +++ b/src/Mod/Part/App/FeatureMirroring.cpp @@ -85,6 +85,8 @@ App::DocumentObjectExecReturn *Mirroring::execute(void) try { const TopoDS_Shape& shape = source->Shape.getValue(); + if (shape.IsNull()) + Standard_Failure::Raise("Cannot mirroR empty shape"); gp_Ax2 ax2(gp_Pnt(base.x,base.y,base.z), gp_Dir(norm.x,norm.y,norm.z)); gp_Trsf mat; mat.SetMirror(ax2);