From: eap Date: Tue, 26 Nov 2013 12:26:45 +0000 (+0000) Subject: Fix access to NULL quad X-Git-Tag: V7_3_0a1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0bcfa9ea1a8c16ef34ae843be298a94d29b7a68;p=modules%2Fsmesh.git Fix access to NULL quad --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index 98b3ddc62..311755c5e 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -909,7 +909,7 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh & break; } } - if ( quad->side.size() != 4 ) + if ( quad && quad->side.size() != 4 ) { error(TComm("Bug: ") << quad->side.size() << " sides found instead of 4"); quad.reset();