]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL21657 Suppress Faces - attempt to access to null object
authordmv <dmv@opencascade.com>
Fri, 2 Apr 2010 07:33:37 +0000 (07:33 +0000)
committerdmv <dmv@opencascade.com>
Fri, 2 Apr 2010 07:33:37 +0000 (07:33 +0000)
src/GEOMImpl/GEOMImpl_HealingDriver.cxx

index 6dd8160f6a05037f83771cb5e899f15c7b106674..c4876744afaed0babdcda1088bb7a65ddb17ae30 100644 (file)
@@ -226,7 +226,8 @@ void SuppressFacesRec (const TopTools_SequenceOfShape& theShapesFaces,
         if (isFound) {
           TopoDS_Shape anOutSh_i;
           SuppressFacesRec(theShapesFaces, aShape_i, anOutSh_i);
-          BB.Add(CC, anOutSh_i);
+          if ( !anOutSh_i.IsNull() )
+            BB.Add(CC, anOutSh_i);
         }
         else {
           // nothing to do