Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Porting to OCCT 7.5.0 and minor improvements/bugfixes.
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeRefList.cpp
diff --git
a/src/Model/Model_AttributeRefList.cpp
b/src/Model/Model_AttributeRefList.cpp
index 6fb763a0231065add44a49024a3486bd69736ecb..44f7e44ab01fa922d1923a40384c438f3a742e65 100644
(file)
--- a/
src/Model/Model_AttributeRefList.cpp
+++ b/
src/Model/Model_AttributeRefList.cpp
@@
-182,7
+182,9
@@
ObjectPtr Model_AttributeRefList::iteratedObject(TDF_ListIteratorOfLabelList& th
}
theExtIter.Next();
} else { // internal document object
- anObj = theDoc->objects()->object(theLIter.Value());
+ TDF_Label aLab = theLIter.Value();
+ if (!aLab.IsNull())
+ anObj = theDoc->objects()->object(theLIter.Value());
}
}
return anObj;