From: dmv Date: Fri, 2 Apr 2010 07:33:37 +0000 (+0000) Subject: IPAL21657 Suppress Faces - attempt to access to null object X-Git-Tag: V5_1_4a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9ae3002a01b4c60d8830c3b0723aa91a1249000;p=modules%2Fgeom.git IPAL21657 Suppress Faces - attempt to access to null object --- diff --git a/src/GEOMImpl/GEOMImpl_HealingDriver.cxx b/src/GEOMImpl/GEOMImpl_HealingDriver.cxx index 6dd8160f6..c4876744a 100644 --- a/src/GEOMImpl/GEOMImpl_HealingDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_HealingDriver.cxx @@ -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