diff --git a/app/controllers/bio_eddie_assets_controller.rb b/app/controllers/bio_eddie_assets_controller.rb index 37f8b2986..a9d5e0ce7 100644 --- a/app/controllers/bio_eddie_assets_controller.rb +++ b/app/controllers/bio_eddie_assets_controller.rb @@ -137,7 +137,7 @@ class BioEddieAssetsController < ApplicationController activity_type: :register_molecule, owner: current_user, team: asset.team, - project: asset.my_module.experiment.project, + project: asset&.my_module&.experiment&.project, subject: asset, message_items: { description: asset.blob.metadata['description'],