]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL10324. Fix MakePartition() for the case theMaterials.IsNull()
authoreap <eap@opencascade.com>
Mon, 26 Jun 2006 14:46:59 +0000 (14:46 +0000)
committereap <eap@opencascade.com>
Mon, 26 Jun 2006 14:46:59 +0000 (14:46 +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++;