]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
add check for handle
authorptv <ptv@opencascade.com>
Thu, 22 Jun 2006 11:22:10 +0000 (11:22 +0000)
committerptv <ptv@opencascade.com>
Thu, 22 Jun 2006 11:22:10 +0000 (11:22 +0000)
src/GEOMImpl/GEOMImpl_IBooleanOperations.cxx

index 435f80d47cf676cad83bea4f83dc37b481cddc0b..8c71c551c5df87635f2a432b7ff877495a4b722d 100644 (file)
@@ -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++;