diff --git a/src/api/app/controllers/webui/request_controller.rb b/src/api/app/controllers/webui/request_controller.rb index b15491305a94..c98d11b53ee5 100644 --- a/src/api/app/controllers/webui/request_controller.rb +++ b/src/api/app/controllers/webui/request_controller.rb @@ -555,7 +555,7 @@ def prepare_request_data @staging_status = staging_status(@bs_request, target_project) if Staging::Workflow.find_by(project: target_project) # Collecting all issues in a hash. Each key is the issue name and the value is a hash containing all the issue details. - @issues = @action.fetch(:sourcediff, []).reduce({}) { |accumulator, sourcediff| accumulator.merge(sourcediff.fetch('issues', {})) } + @issues = (@action.fetch(:sourcediff, []) || []).reduce({}) { |accumulator, sourcediff| accumulator.merge(sourcediff.fetch('issues', {})) } # retrieve a list of all package maintainers that are assigned to at least one target package @package_maintainers = target_package_maintainers