From d21d4c89cbdd8a5fdfcc6cfad6178ae227176b2b Mon Sep 17 00:00:00 2001 From: xtemp09 Date: Wed, 26 Apr 2023 18:56:53 +0700 Subject: [PATCH] Fixed segmentation fault in PartDesign workbench Closes #9382. --- src/Mod/PartDesign/Gui/Utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index e7e11f90c7..67bb778b11 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -438,6 +438,9 @@ void relinkToBody (PartDesign::Feature *feature) { bool isFeatureMovable(App::DocumentObject* const feat) { + if (!feat) + return false; + if (feat->getTypeId().isDerivedFrom(PartDesign::Feature::getClassTypeId())) { auto prim = static_cast(feat); App::DocumentObject* bf = prim->BaseFeature.getValue();