IPAL21657 Suppress Faces - attempt to access to null object

This commit is contained in:
dmv 2010-04-02 07:33:37 +00:00
parent 3f167acb79
commit a9ae3002a0

View 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