Merge pull request #5113 from jack9603301/master

[Part] Fix null pointer error in sweep operation - Fixes #0004764
This commit is contained in:
Chris Hennes
2021-10-13 15:26:45 -05:00
committed by GitHub

View File

@@ -544,6 +544,10 @@ App::DocumentObjectExecReturn *Sweep::execute(void)
break;
}
if(path.IsNull()) {
return new App::DocumentObjectExecReturn("Spine path missing, sweep operation stopped.");
}
if (path.ShapeType() == TopAbs_EDGE) {
BRepBuilderAPI_MakeWire mkWire(TopoDS::Edge(path));
path = mkWire.Wire();