Fix access to NULL quad

This commit is contained in:
eap 2013-11-26 12:26:45 +00:00
parent 5f7b45e582
commit d0bcfa9ea1

View 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();