]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Regression of smesh/bugs_19/X1: avoid SIGSEGV in case of invalid node params on EDGE
authoreap <eap@opencascade.com>
Wed, 6 May 2015 16:17:10 +0000 (19:17 +0300)
committereap <eap@opencascade.com>
Wed, 6 May 2015 16:17:10 +0000 (19:17 +0300)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index d06bbc277accf2a4d9c2d0c6242309b7a3f65769..3ef94f640eba9a7fba8fbdb64d36af90a9950ae5 100644 (file)
@@ -790,6 +790,7 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry&           occgeom,
         bool isQuad   = smDS->NbElements() ? smDS->GetElements()->next()->IsQuadratic() : false;
         StdMeshers_FaceSide fSide( face, edges, _mesh, isForwad, isQuad );
         const vector<UVPtStruct>& points = fSide.GetUVPtStruct();
+        if ( points.empty() ) return false; // invalid node params?
         int i, nbSeg = fSide.NbSegments();
 
         // remember EDGEs of fSide to treat only once