From: eap Date: Tue, 10 Sep 2013 14:28:13 +0000 (+0000) Subject: Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() X-Git-Tag: V7_3_0a1~163 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03ec1eff3194bb0f273bac9ee3c70ac59df9d868;p=modules%2Fsmesh.git Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute() --- diff --git a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx index de0523143..4f595074f 100644 --- a/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx +++ b/src/StdMeshers/StdMeshers_Quadrangle_2D.cxx @@ -961,7 +961,7 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh & } } } - if (nbSides != 4) { + if (nbSides != 4 && myHelper) { #ifdef _DEBUG_ MESSAGE ("StdMeshers_Quadrangle_2D. Edge IDs of " << nbSides << " sides:\n"); for (int i = 0; i < nbSides; ++i) {