From 047030bb0239fdccf075b9737805ee08974874f9 Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 25 Dec 2015 14:32:37 +0300 Subject: [PATCH] Crash fix --- src/Model/Model_AttributeRefList.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()); -- 2.39.2