diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index dd1fc773ef..ebf18c3402 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -1351,8 +1351,9 @@ void ProfileBased::getAxis(const App::DocumentObject * pcReferenceAxis, const st }; dir = Base::Vector3d(0, 0, 0); // If unchanged signals that no valid axis was found - if (!pcReferenceAxis) + if (!pcReferenceAxis || subReferenceAxis.empty()) { return; + } App::DocumentObject* profile = Profile.getValue(); gp_Pln sketchplane;