Avoid SIGSEGV in debug mode if CheckNbEdges() is called w/o calling Compute()

This commit is contained in:
eap 2013-09-10 14:28:13 +00:00
parent c81123c27b
commit 03ec1eff31

View File

@ -961,7 +961,7 @@ FaceQuadStruct::Ptr StdMeshers_Quadrangle_2D::CheckNbEdges(SMESH_Mesh &
} }
} }
} }
if (nbSides != 4) { if (nbSides != 4 && myHelper) {
#ifdef _DEBUG_ #ifdef _DEBUG_
MESSAGE ("StdMeshers_Quadrangle_2D. Edge IDs of " << nbSides << " sides:\n"); MESSAGE ("StdMeshers_Quadrangle_2D. Edge IDs of " << nbSides << " sides:\n");
for (int i = 0; i < nbSides; ++i) { for (int i = 0; i < nbSides; ++i) {