From 141c3bca53fe3a6b0be5067ce69fa2123794da5d Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 3 Jan 2020 14:24:53 +0100 Subject: [PATCH] fixes #0004158: FreeCAD crashes when deleting spline [skip ci] --- src/Mod/PartDesign/App/FeaturePipe.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/PartDesign/App/FeaturePipe.cpp b/src/Mod/PartDesign/App/FeaturePipe.cpp index ae41478b3d..3ee4f68a5d 100644 --- a/src/Mod/PartDesign/App/FeaturePipe.cpp +++ b/src/Mod/PartDesign/App/FeaturePipe.cpp @@ -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 shells; std::vector frontwires, backwires;