]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for crash in tests
authorasl <asl@opencascade.com>
Mon, 19 Oct 2015 12:23:00 +0000 (15:23 +0300)
committerasl <asl@opencascade.com>
Mon, 19 Oct 2015 12:23:00 +0000 (15:23 +0300)
src/HYDROData/HYDROData_LandCoverMap.cxx

index 575f94d5fcf12a9203a74047cbe6b6ed738939e5..d97e858e40c7b182e200561630c5066185e38b3f 100644 (file)
@@ -92,7 +92,10 @@ void HYDROData_LandCoverMap::Iterator::Init( const HYDROData_LandCoverMap& theMa
     myIterator = new TopoDS_Iterator( aShape );
   
   theMap.myLab.FindChild( DataTag_Types ).FindAttribute( TDataStd_ExtStringArray::GetID(), myArray );
-  myIndex = myArray->Lower();
+  if( myArray.IsNull() )
+    myIndex = -1;
+  else
+    myIndex = myArray->Lower();
 }
 
 /**