]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3255: Access violation deleting parameters
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 13:50:14 +0000 (16:50 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Wed, 20 May 2020 13:50:14 +0000 (16:50 +0300)
src/XGUI/XGUI_Workshop.cpp

index 37bbb612d51799c975937c555818ff93023ff464..274964c1dc7181d3fe9cd2da257700d1aeb73518 100644 (file)
@@ -1956,7 +1956,7 @@ void XGUI_Workshop::deleteObjects()
     ResultConstructionPtr aConstr = std::dynamic_pointer_cast<ModelAPI_ResultConstruction>(aObj);
     FeaturePtr aFeature = ModelAPI_Feature::feature(aObj);
     if (aFeature) {
-      notDelete = (!aFeature->isInHistory()) && aConstr->isInfinite();
+      notDelete = (!aFeature->isInHistory()) && (aConstr && aConstr->isInfinite());
       if (notDelete) {
         anObjects.removeAll(aObj);
         aIt--;