From 776877c27deec6d44b1f95f16af5852653d8b946 Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Fri, 14 Oct 2016 20:07:14 +0800
Subject: [PATCH] Pipeline#user could be nil. Feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_16956937
---
 app/models/ci/pipeline.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index d534fdc0560..0ed1c496022 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -116,7 +116,7 @@ module Ci
 
     # For now the only user who participates is the user who triggered
     def participants(_current_user = nil)
-      [user]
+      [user].compact
     end
 
     def valid_commit_sha
-- 
GitLab