From 72277da6292917a4a05a6b0781b52ccc664fe441 Mon Sep 17 00:00:00 2001 From: adv Date: Tue, 24 Dec 2013 09:05:58 +0000 Subject: [PATCH] Minor change (protection from crash). --- src/HYDROData/HYDROData_Projection.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.39.2