From: eap Date: Mon, 26 Jun 2006 14:46:59 +0000 (+0000) Subject: PAL10324. Fix MakePartition() for the case theMaterials.IsNull() X-Git-Tag: T3_2_1_pre~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c45790bd4396f4a9dd30332ae0eb316cbc0d627;p=modules%2Fgeom.git PAL10324. Fix MakePartition() for the case theMaterials.IsNull() --- diff --git a/src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx b/src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx index 435f80d47..8c71c551c 100644 --- a/src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx @@ -280,7 +280,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition // Limit, Remove Webs pd << theLimit << ", " << (int)theRemoveWebs << ", ["; // Materials - if (theMaterials->Length() > 0) { + if (!theMaterials.IsNull() && theMaterials->Length() > 0) { int i = theMaterials->Lower(); pd << theMaterials->Value(i); i++;