From 73b8b394ec757639d960e5d888d872a78cb5f1f8 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 16 Feb 2006 13:01:00 +0000 Subject: [PATCH] PAL11200. do not return NULL submeshes from getSubmeshes() --- src/SMESH_I/SMESH_subMesh_i.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_subMesh_i.cxx b/src/SMESH_I/SMESH_subMesh_i.cxx index f3aafd108..7772524b6 100644 --- a/src/SMESH_I/SMESH_subMesh_i.cxx +++ b/src/SMESH_I/SMESH_subMesh_i.cxx @@ -146,7 +146,9 @@ bool getSubMeshes(::SMESH_subMesh* theSubMesh, } break; } - default: theSubMeshList.push_back( aSubMeshDS ); + default: + if ( aSubMeshDS ) + theSubMeshList.push_back( aSubMeshDS ); } return size < theSubMeshList.size(); } -- 2.39.2