From: mpv Date: Tue, 24 Mar 2015 09:21:01 +0000 (+0300) Subject: Fix of crash in issue #416 X-Git-Tag: V_1.0.2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=647f62a71de86575a6c5ac73c61371d336c8da75;p=modules%2Fshaper.git Fix of crash in issue #416 --- 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) {