From 5c45790bd4396f4a9dd30332ae0eb316cbc0d627 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 26 Jun 2006 14:46:59 +0000 Subject: [PATCH] PAL10324. Fix MakePartition() for the case theMaterials.IsNull() --- src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++;