From 7273fecf42796fb3a5be110e065d6e4dbf605ff2 Mon Sep 17 00:00:00 2001 From: ptv Date: Thu, 22 Jun 2006 11:22:10 +0000 Subject: [PATCH] add check for handle --- 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++; -- 2.39.2