]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
#17956 [CEA 17925] COMPERR_OCC_EXCEPTION
authoreap <eap@opencascade.com>
Fri, 8 Nov 2019 13:58:10 +0000 (16:58 +0300)
committereap <eap@opencascade.com>
Fri, 8 Nov 2019 13:58:10 +0000 (16:58 +0300)
src/SMESH/SMESH_MeshEditor.cxx

index 01e5f628a3b5dfd4f171bca534f09289ca5cf650..0673fc64edc86cca16612d6475a9109515e1987f 100644 (file)
@@ -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 );