From: Artem Zhidkov Date: Wed, 20 May 2020 13:50:14 +0000 (+0300) Subject: Issue #3255: Access violation deleting parameters X-Git-Tag: V9_5_0rc1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2bd7511e7a07aac88788bc9cceac1613d07885b1;p=modules%2Fshaper.git Issue #3255: Access violation deleting parameters --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 37bbb612d..274964c1d 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1956,7 +1956,7 @@ void XGUI_Workshop::deleteObjects() ResultConstructionPtr aConstr = std::dynamic_pointer_cast(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--;