Salome HOME
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git] / src / HYDROData / HYDROData_Projection.cxx
index 83e0560a18732e3bfeb085a26d78a8241b40433f..bef6785c92775c0186c1e8efa2f5efacaea2dea5 100644 (file)
@@ -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();