fixes #0004158: FreeCAD crashes when deleting spline [skip ci]

This commit is contained in:
wmayer
2020-01-03 14:24:53 +01:00
parent abb258855a
commit 141c3bca53

View File

@@ -225,6 +225,10 @@ App::DocumentObjectExecReturn *Pipe::execute(void)
scalinglaw = s;
}*/
// Verify that path is not a null shape
if (path.IsNull())
return new App::DocumentObjectExecReturn("Path must not be a null shape");
//build all shells
std::vector<TopoDS_Shape> shells;
std::vector<TopoDS_Wire> frontwires, backwires;