From a9ae3002a01b4c60d8830c3b0723aa91a1249000 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 2 Apr 2010 07:33:37 +0000 Subject: [PATCH] IPAL21657 Suppress Faces - attempt to access to null object --- src/GEOMImpl/GEOMImpl_HealingDriver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2