From 919584a7e5ee83c384873c2627b9865e8ba02272 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 1 Sep 2016 20:08:30 +0300 Subject: [PATCH] #1707 Fatal error when Recover box --- src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp b/src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp index ba83b7734..2e3e0aa8a 100644 --- a/src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp +++ b/src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp @@ -80,7 +80,7 @@ bool ModuleBase_WidgetConcealedObjects::restoreValueCustom() std::list::const_iterator anOIt = anObjects.begin(), anOLast = anObjects.end(); for (; anOIt != anOLast; anOIt++) { ResultPtr aResult = std::dynamic_pointer_cast(*anOIt); - if (aResult->isConcealed()) { + if (aResult && aResult->isConcealed()) { int aRowId = myView->rowCount(); addViewRow(aResult); myConcealedResults[aRowId] = aResult; -- 2.39.2