]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix access to NULL quad
authoreap <eap@opencascade.com>
Tue, 26 Nov 2013 12:26:45 +0000 (12:26 +0000)
committereap <eap@opencascade.com>
Tue, 26 Nov 2013 12:26:45 +0000 (12:26 +0000)
src/StdMeshers/StdMeshers_Quadrangle_2D.cxx

index 98b3ddc622c2baf664e6c48c5b4e827635efa1ac..311755c5ef3c003ffaec11b98c8967e646889b2f 100644 (file)
@@ -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();