]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of crash in issue #416
authormpv <mpv@opencascade.com>
Tue, 24 Mar 2015 09:21:01 +0000 (12:21 +0300)
committermpv <mpv@opencascade.com>
Tue, 24 Mar 2015 09:21:01 +0000 (12:21 +0300)
src/Model/Model_Update.cpp

index 38bbe15ada18dc6ac53e9f0cbecddc701ded4eea..df315616bb3d6da9947e06604814c97097cd6ad7 100644 (file)
@@ -112,7 +112,7 @@ void Model_Update::processEvent(const std::shared_ptr<Events_Message>& theMessag
       for(aFIter = myJustCreatedOrUpdated.begin(); aFIter != myJustCreatedOrUpdated.end(); aFIter++)
       {
         FeaturePtr aF = std::dynamic_pointer_cast<ModelAPI_Feature>(*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) {