add check for handle

This commit is contained in:
ptv 2006-06-22 11:22:10 +00:00
parent c420fe5dcc
commit 7273fecf42

View File

@ -280,7 +280,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition
// Limit, Remove Webs // Limit, Remove Webs
pd << theLimit << ", " << (int)theRemoveWebs << ", ["; pd << theLimit << ", " << (int)theRemoveWebs << ", [";
// Materials // Materials
if (theMaterials->Length() > 0) { if (!theMaterials.IsNull() && theMaterials->Length() > 0) {
int i = theMaterials->Lower(); int i = theMaterials->Lower();
pd << theMaterials->Value(i); pd << theMaterials->Value(i);
i++; i++;