From 647f62a71de86575a6c5ac73c61371d336c8da75 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 24 Mar 2015 12:21:01 +0300 Subject: [PATCH] Fix of crash in issue #416 --- src/Model/Model_Update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 38bbe15ad..df315616b 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -112,7 +112,7 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag for(aFIter = myJustCreatedOrUpdated.begin(); aFIter != myJustCreatedOrUpdated.end(); aFIter++) { FeaturePtr aF = std::dynamic_pointer_cast(*aFIter); - if (aF && aF->getKind() == "Extrusion") { + if (aF && aF->data() && aF->data()->isValid() && aF->getKind() == "Extrusion") { if (aF->selection("extrusion_face")) { ResultPtr aSketchRes = aF->selection("extrusion_face")->context(); if (aSketchRes) { -- 2.39.2