]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Corrected for bug NPAL16170.
authorskl <skl@opencascade.com>
Fri, 15 Jun 2007 05:44:11 +0000 (05:44 +0000)
committerskl <skl@opencascade.com>
Fri, 15 Jun 2007 05:44:11 +0000 (05:44 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index 493abb9081ec5b599d70a419d04d13e8343a8580..8832c08965b2be34bab6ab3570a2877bf44bb73a 100644 (file)
@@ -2552,6 +2552,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
       }
       // close hypotheses root HDF group
       aTopGroup->CloseOnDisk();
+      aTopGroup = 0;
     }
 
     // --> then we should read&create algorithms
@@ -2651,6 +2652,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
       }
       // close algorithms root HDF group
       aTopGroup->CloseOnDisk();
+      aTopGroup = 0;
     }
 
     // --> the rest groups should be meshes
@@ -3292,7 +3294,8 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
       }
     }
     // close mesh group
-    aTopGroup->CloseOnDisk();   
+    if(aTopGroup)
+      aTopGroup->CloseOnDisk();   
   }
   // close HDF file
   aFile->CloseOnDisk();