Skip to content

Commit

Permalink
fixes #4158: FreeCAD crashes when deleting spline [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 3, 2020
1 parent ec18f07 commit 4df6373
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/PartDesign/App/FeaturePipe.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4df6373

Please sign in to comment.