Salome HOME
Issue #3074: SIGSEGV when changing sketch plane
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_Rigid.cpp
index d552f06f16fee4b4a679068319ff6b5e1b4b6d63..d704e2e1665e1e9ffe8a293f1a4971a6828bbefb 100644 (file)
@@ -59,6 +59,8 @@ bool SketcherPrs_Rigid::IsReadyToDisplay(ModelAPI_Feature* theConstraint,
                                          const std::shared_ptr<GeomAPI_Ax3>& thePlane)
 {
   bool aReadyToDisplay = false;
+  if (!thePlane)
+    return aReadyToDisplay;
 
   std::shared_ptr<ModelAPI_Data> aData = theConstraint->data();
   std::shared_ptr<ModelAPI_AttributeRefAttr> anAttr =