Salome HOME
#1707 Fatal error when Recover box
authornds <nds@opencascade.com>
Thu, 1 Sep 2016 17:08:30 +0000 (20:08 +0300)
committernds <nds@opencascade.com>
Thu, 1 Sep 2016 17:08:30 +0000 (20:08 +0300)
src/ModuleBase/ModuleBase_WidgetConcealedObjects.cpp

index ba83b7734a1d921d8047e7163659a2857fa42f4e..2e3e0aa8a3964a71643f7d4f1551b4babe2f3467 100644 (file)
@@ -80,7 +80,7 @@ bool ModuleBase_WidgetConcealedObjects::restoreValueCustom()
         std::list<ObjectPtr>::const_iterator anOIt = anObjects.begin(), anOLast = anObjects.end();
         for (; anOIt != anOLast; anOIt++) {
           ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(*anOIt);
-          if (aResult->isConcealed()) {
+          if (aResult && aResult->isConcealed()) {
             int aRowId = myView->rowCount();
             addViewRow(aResult);
             myConcealedResults[aRowId] = aResult;