]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression of 0021472: EDF 2080 SMESH: Projection1D2D on a Voronoi structure fails
authoreap <eap@opencascade.com>
Wed, 18 Apr 2012 16:31:39 +0000 (16:31 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2012 16:31:39 +0000 (16:31 +0000)
src/StdMeshers/StdMeshers_Projection_2D.cxx

index 9aef5d6cdf5f412c572bce20d1e616107676740f..8255b7486251ce48018e87c346af8bc8fec574a6 100644 (file)
@@ -948,7 +948,7 @@ bool StdMeshers_Projection_2D::Compute(SMESH_Mesh& theMesh, const TopoDS_Shape&
     {
       SMESH_subMesh*     sm = smIt->next();
       SMESHDS_SubMesh* smDS = sm->GetSubMeshDS();
-      if ( smDS->NbNodes() == 0 )
+      if ( !smDS || smDS->NbNodes() == 0 )
         continue;
       //if ( !is1DComputed && sm->GetSubShape().ShapeType() == TopAbs_EDGE )
       //break;