mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 00:52:03 +05:00
add check for handle
This commit is contained in:
parent
c420fe5dcc
commit
7273fecf42
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user