]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Model/Model_AttributeSelection.cpp
Salome HOME
The references to the external edge attribute is added
[modules/shaper.git] / src / Model / Model_AttributeSelection.cpp
index f919cecd6e0d3ef9f75d6ecda22548d997f9a18b..9c71730a021a647bef420f490b566f0c6cdb8c29 100644 (file)
@@ -85,6 +85,7 @@ void Model_AttributeSelection::setObject(const boost::shared_ptr<ModelAPI_Object
 bool Model_AttributeSelection::update()
 {
   ResultPtr aContext = context();
+  if (!aContext) return false;
   if (aContext->groupName() == ModelAPI_ResultBody::group()) {
     // body: just a named shape, use selection mechanism from OCCT
     TNaming_Selector aSelector(myRef.myRef->Label());