From 11e45272e1ca920eb2b979daeb5d42c24ed14a2e Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 18 Sep 2019 13:07:45 +0300 Subject: [PATCH] Add checking for empty pointer while dump to Python. --- src/ModelHighAPI/ModelHighAPI_Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index c61974d3b..8f1938720 100644 --- 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(anObject); - if (aFeature->getKind() == "SketchConstraintCoincidenceInternal") + if (aFeature && aFeature->getKind() == "SketchConstraintCoincidenceInternal") continue; // no need to dump and check internal constraints if (theCompare) { -- 2.39.2