mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-23 22:12:04 +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
|
// 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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user