]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_Document.cpp
Salome HOME
Fix of the problem of naming name parse if results are referenced in not direct way...
[modules/shaper.git] / src / Model / Model_Document.cpp
index f37533c07150b781100ada7f8fd1dd8bc598063b..78afb82aac58214bc4d42c4b69288062cbc66b64 100755 (executable)
@@ -1306,6 +1306,8 @@ bool Model_Document::removeFromFolder(
 std::shared_ptr<ModelAPI_Feature> Model_Document::feature(
     const std::shared_ptr<ModelAPI_Result>& theResult)
 {
+  if (myObjs == 0) // may be on close
+    return std::shared_ptr<ModelAPI_Feature>();
   return myObjs->feature(theResult);
 }