Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d028a3
)
Add checking for empty pointer while dump to Python.
author
azv
<azv@opencascade.com>
Wed, 18 Sep 2019 10:07:45 +0000
(13:07 +0300)
committer
azv
<azv@opencascade.com>
Wed, 18 Sep 2019 10:07:45 +0000
(13:07 +0300)
src/ModelHighAPI/ModelHighAPI_Tools.cpp
patch
|
blob
|
history
diff --git
a/src/ModelHighAPI/ModelHighAPI_Tools.cpp
b/src/ModelHighAPI/ModelHighAPI_Tools.cpp
index c61974d3be3646390916096047a1423b78c73fb4..8f1938720491f21997eee2676bc0b331c92a68e9 100644
(file)
--- a/
src/ModelHighAPI/ModelHighAPI_Tools.cpp
+++ b/
src/ModelHighAPI/ModelHighAPI_Tools.cpp
@@
-404,7
+404,7
@@
std::string storeFeatures(const std::string& theDocName, DocumentPtr theDoc,
for(; allIter != allObjects.end(); allIter++) {
ObjectPtr anObject = *allIter;
FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(anObject);
- if (aFeature->getKind() == "SketchConstraintCoincidenceInternal")
+ if (aFeature
&& aFeature
->getKind() == "SketchConstraintCoincidenceInternal")
continue; // no need to dump and check internal constraints
if (theCompare) {