From: nds Date: Thu, 1 Sep 2016 17:08:30 +0000 (+0300) Subject: #1707 Fatal error when Recover box X-Git-Tag: V_2.5.0~80 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=919584a7e5ee83c384873c2627b9865e8ba02272;p=modules%2Fshaper.git #1707 Fatal error when Recover box --- 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;