From: eap Date: Fri, 8 Nov 2019 13:58:10 +0000 (+0300) Subject: #17956 [CEA 17925] COMPERR_OCC_EXCEPTION X-Git-Tag: V9_4_0rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95aa1f92b91de619f549d1cb4d142718d5e2ab34;p=modules%2Fsmesh.git #17956 [CEA 17925] COMPERR_OCC_EXCEPTION --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 01e5f628a..0673fc64e 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -7478,6 +7478,8 @@ void SMESH_MeshEditor::FindEqualElements( TIDSortedElemSet & theElements, while ( elemIt->more() ) { const SMDS_MeshElement* curElem = elemIt->next(); + if ( curElem->IsNull() ) + continue; ComparableElement compElem = curElem; // check uniqueness const ComparableElement& elemInSet = mapOfElements.Added( compElem );