From: eap Date: Fri, 8 Nov 2019 13:55:05 +0000 (+0300) Subject: #17956 [CEA 17925] COMPERR_OCC_EXCEPTION X-Git-Tag: V9_5_0a1~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fc0f4f35550ae93bf28140d364757453acd42b8;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 ); diff --git a/src/SMESHUtils/SMESH_FillHole.cxx b/src/SMESHUtils/SMESH_FillHole.cxx index ff4a8584c..0d09f0d8e 100644 --- a/src/SMESHUtils/SMESH_FillHole.cxx +++ b/src/SMESHUtils/SMESH_FillHole.cxx @@ -35,7 +35,7 @@ #include #include -#include +//#include #include