From 2bd7511e7a07aac88788bc9cceac1613d07885b1 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 20 May 2020 16:50:14 +0300 Subject: [PATCH] Issue #3255: Access violation deleting parameters --- src/XGUI/XGUI_Workshop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; -- 2.39.2