From: asl Date: Thu, 22 Oct 2015 10:30:49 +0000 (+0300) Subject: patch on crash in old study X-Git-Tag: v1.5~75^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2047f12675560e2447b4a3ab55d85a8b5e5ccf40;p=modules%2Fhydro.git patch on crash in old study --- diff --git a/src/HYDROData/HYDROData_Entity.cxx b/src/HYDROData/HYDROData_Entity.cxx index 99667f31..f0b9e5fb 100644 --- a/src/HYDROData/HYDROData_Entity.cxx +++ b/src/HYDROData/HYDROData_Entity.cxx @@ -165,6 +165,8 @@ void HYDROData_Entity::Changed( Geometry theChangedGeometry ) for ( ; anIter.More(); anIter.Next() ) { Handle(HYDROData_Entity) anObject = anIter.Current(); + if( anObject.IsNull() ) + continue; HYDROData_SequenceOfObjects aRefSeq = anObject->GetAllReferenceObjects(); for ( int i = 1, n = aRefSeq.Length(); i <= n; ++i ) {