]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Minor change (protection from crash).
authoradv <adv@opencascade.com>
Tue, 24 Dec 2013 09:05:58 +0000 (09:05 +0000)
committeradv <adv@opencascade.com>
Tue, 24 Dec 2013 09:05:58 +0000 (09:05 +0000)
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();