From: dbv Date: Fri, 25 Dec 2015 11:32:37 +0000 (+0300) Subject: Crash fix X-Git-Tag: V_2.1.0~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=047030bb0239fdccf075b9737805ee08974874f9;p=modules%2Fshaper.git Crash fix --- diff --git a/src/Model/Model_AttributeRefList.cpp b/src/Model/Model_AttributeRefList.cpp index ee9b20d74..469a4add2 100644 --- a/src/Model/Model_AttributeRefList.cpp +++ b/src/Model/Model_AttributeRefList.cpp @@ -100,6 +100,9 @@ list Model_AttributeRefList::list() bool Model_AttributeRefList::isInList(const ObjectPtr& theObj) { + if(!theObj.get()) { + return false; + } std::list aResult; std::shared_ptr aDoc = std::dynamic_pointer_cast( owner()->document());