From: asl Date: Mon, 19 Oct 2015 12:23:00 +0000 (+0300) Subject: patch for crash in tests X-Git-Tag: v1.5~88 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8baeb91cf8e14852b2f2b6f7fff1a9567c7d6aa3;p=modules%2Fhydro.git patch for crash in tests --- diff --git a/src/HYDROData/HYDROData_LandCoverMap.cxx b/src/HYDROData/HYDROData_LandCoverMap.cxx index 575f94d5..d97e858e 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.cxx +++ b/src/HYDROData/HYDROData_LandCoverMap.cxx @@ -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(); } /**