]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Add checking for empty pointer while dump to Python.
authorazv <azv@opencascade.com>
Wed, 18 Sep 2019 10:07:45 +0000 (13:07 +0300)
committerazv <azv@opencascade.com>
Wed, 18 Sep 2019 10:07:45 +0000 (13:07 +0300)
src/ModelHighAPI/ModelHighAPI_Tools.cpp

index c61974d3be3646390916096047a1423b78c73fb4..8f1938720491f21997eee2676bc0b331c92a68e9 100644 (file)
@@ -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) {