diff --git a/app/services/deepblue/yaml_populate_service.rb b/app/services/deepblue/yaml_populate_service.rb index 16c12017..586a77fb 100644 --- a/app/services/deepblue/yaml_populate_service.rb +++ b/app/services/deepblue/yaml_populate_service.rb @@ -151,7 +151,8 @@ def yaml_escape_value( value, comment: false, escape: false ) def yaml_export_file_path( target_dirname:, file_set: ) file = MetadataHelper2.file_from_file_set( file_set ) - export_file_name = file.original_name + export_file_name = "" + export_file_name = file&.original_name target_dirname.join "#{file_set.id}_#{export_file_name}" end