]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1394: Bug SIGSEGV.
authornds <nds@opencascade.com>
Fri, 1 Apr 2016 08:51:19 +0000 (11:51 +0300)
committernds <nds@opencascade.com>
Fri, 1 Apr 2016 08:51:19 +0000 (11:51 +0300)
src/XGUI/XGUI_Workshop.cpp

index 0b7c71c35780de47233bbc5851b50171774cb501..455bebcd6c88b95167f89ea24da47f3a40a3a62a 100755 (executable)
@@ -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());