Salome HOME
Merge branch 'master' into pra/blocFissure
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 4 Dec 2014 15:39:37 +0000 (16:39 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 4 Dec 2014 15:39:37 +0000 (16:39 +0100)
src/StdMeshers/StdMeshers_LocalLength.cxx

index 6546c44..a5712bd 100644 (file)
@@ -216,6 +216,8 @@ bool StdMeshers_LocalLength::SetParametersByMesh(const SMESH_Mesh*   theMesh,
   {
     const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
     Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
+    if ( C.IsNull() )
+      continue;
     GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
 
     vector< double > params;