From: nds Date: Fri, 1 Apr 2016 08:51:19 +0000 (+0300) Subject: Issue #1394: Bug SIGSEGV. X-Git-Tag: V_2.3.0~350 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39b34c60bceea0a2bbc6caabcaced65f93b990a8;p=modules%2Fshaper.git Issue #1394: Bug SIGSEGV. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 0b7c71c35..455bebcd6 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1409,6 +1409,8 @@ bool XGUI_Workshop::isDeleteFeatureWithReferences(const QObjectPtrList& theList, if (!aFeature->data()->isValid()) continue; ResultPtr aFirstResult = aFeature->firstResult(); + if (!aFirstResult.get()) + continue; std::string aResultGroupName = aFirstResult->groupName(); if (aResultGroupName == ModelAPI_ResultPart::group()) aPartFeatureNames.append(aFeature->name().c_str());