]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve stability for issue #1346
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 1 Mar 2016 08:24:47 +0000 (11:24 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 1 Mar 2016 08:24:47 +0000 (11:24 +0300)
src/Model/Model_AttributeSelectionList.cpp

index b3c39a76d6a27701657571be04880b31bf989273..a51cfae979f8d7f83a4bebff838092a453d510ab 100644 (file)
@@ -147,8 +147,10 @@ bool Model_AttributeSelectionList::isInList(const ResultPtr& theContext,
 {
   for(int anIndex = size() - 1; anIndex >= 0; anIndex--) {
     AttributeSelectionPtr anAttr = value(anIndex);
-    if (anAttr->context() == theContext && anAttr->value()->isEqual(theSubShape))
-      return true;
+    if (anAttr.get() && anAttr->value().get()) {
+      if (anAttr->context() == theContext && anAttr->value()->isEqual(theSubShape))
+        return true;
+    }
   }
   return false;
 }