From: adv Date: Tue, 24 Dec 2013 09:05:58 +0000 (+0000) Subject: Minor change (protection from crash). X-Git-Tag: BR_hydro_v_0_7~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72277da6292917a4a05a6b0781b52ccc664fe441;p=modules%2Fhydro.git Minor change (protection from crash). --- diff --git a/src/HYDROData/HYDROData_Projection.cxx b/src/HYDROData/HYDROData_Projection.cxx index 83e0560a..bef6785c 100644 --- a/src/HYDROData/HYDROData_Projection.cxx +++ b/src/HYDROData/HYDROData_Projection.cxx @@ -233,6 +233,9 @@ TopoDS_Wire HYDROData_Projection::BuildOutWire( const TopTools_IndexedDataMapOfS //======================================================================= TopoDS_Face HYDROData_Projection::MakeProjection( const TopoDS_Shape& aShape ) { + if ( aShape.IsNull() ) + return TopoDS_Face(); + HLRAlgo_Projector theProjector(gp::XOY()); Handle(HLRBRep_Algo) aHLRAlgo = new HLRBRep_Algo();