From 2047f12675560e2447b4a3ab55d85a8b5e5ccf40 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 22 Oct 2015 13:30:49 +0300 Subject: [PATCH] patch on crash in old study --- src/HYDROData/HYDROData_Entity.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ) { -- 2.39.2