diff options
Diffstat (limited to 'lib/gitlab/hook_data/project_builder.rb')
-rw-r--r-- | lib/gitlab/hook_data/project_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/hook_data/project_builder.rb b/lib/gitlab/hook_data/project_builder.rb index 56b8b842a78..1f7459e57af 100644 --- a/lib/gitlab/hook_data/project_builder.rb +++ b/lib/gitlab/hook_data/project_builder.rb @@ -54,7 +54,7 @@ module Gitlab # Can be consolidate again once https://gitlab.com/gitlab-org/gitlab/-/issues/432606 is addressed if project.group project.group.all_owner_members.select(:id, :user_id) - .preload_user.find_each.map { |member| owner_data(member.user) } + .preload_user.find_each.map { |member| owner_data(member.user) if member.user } else data = [] project.project_authorizations.owners.preload_user.each_batch(column: :user_id) do |relation| |