From d0bcfa9ea1a8c16ef34ae843be298a94d29b7a68 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 26 Nov 2013 12:26:45 +0000 Subject: [PATCH] Fix access to NULL quad --- src/StdMeshers/StdMeshers_Quadrangle_2D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2