From 95aa1f92b91de619f549d1cb4d142718d5e2ab34 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 8 Nov 2019 16:58:10 +0300 Subject: [PATCH] #17956 [CEA 17925] COMPERR_OCC_EXCEPTION --- src/SMESH/SMESH_MeshEditor.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.39.2