]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix bug 11419: CRASH after trying to import MED file in Post-Pro module.
authorjfa <jfa@opencascade.com>
Tue, 31 Jan 2006 15:57:29 +0000 (15:57 +0000)
committerjfa <jfa@opencascade.com>
Tue, 31 Jan 2006 15:57:29 +0000 (15:57 +0000)
src/SalomeApp/SalomeApp_DataModel.cxx

index aeda19d4c35f4c3b3b9d84f582d6a8a65c80e9f7..81db7b490bbb64df5244eb2bc393c12fa813bd10 100644 (file)
@@ -247,7 +247,8 @@ void SalomeApp_DataModel::update( LightApp_DataObject*, LightApp_Study* study )
       }
     }
   }
-  updateTree( sobj, aSStudy );
+  if ( sobj && aSStudy )
+    updateTree( sobj, aSStudy );
 }
 
 //================================================================
@@ -256,7 +257,7 @@ void SalomeApp_DataModel::update( LightApp_DataObject*, LightApp_Study* study )
 //================================================================
 SUIT_DataObject* SalomeApp_DataModel::synchronize( const _PTR( SComponent )& sobj, SalomeApp_Study* study )
 {
-  if( !study || !study->root() )
+  if( !study || !study->root() || !sobj )
     return 0;
 
   DataObjectList ch; study->root()->children( ch );