]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Crash fix
authordbv <dbv@opencascade.com>
Fri, 25 Dec 2015 11:32:37 +0000 (14:32 +0300)
committerdbv <dbv@opencascade.com>
Fri, 25 Dec 2015 11:32:48 +0000 (14:32 +0300)
src/Model/Model_AttributeRefList.cpp

index ee9b20d749bdc785f6c7919eff937de7aa9310e0..469a4add2b2983532e8d4980357dd5c8c89759fd 100644 (file)
@@ -100,6 +100,9 @@ list<ObjectPtr> Model_AttributeRefList::list()
 
 bool Model_AttributeRefList::isInList(const ObjectPtr& theObj)
 {
+  if(!theObj.get()) {
+    return false;
+  }
   std::list<ObjectPtr> aResult;
   std::shared_ptr<Model_Document> aDoc = std::dynamic_pointer_cast<Model_Document>(
       owner()->document());