summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-05-10 13:33:44 +0000
committerRémy Coutable <remy@rymai.me>2019-05-10 13:33:44 +0000
commitdb453ffdbd8108739a227519a327978778c28cf9 (patch)
tree4e93075235c1bf07709a2e76ba99fdf08e8cf37c /app
parent4c16ce118498a2e3b98ad069000031fa9c55fcd3 (diff)
downloadgitlab-ce-db453ffdbd8108739a227519a327978778c28cf9.tar.gz
Resolve "JIRA service: NoMethodError: undefined method `find' for nil:NilClass"
Diffstat (limited to 'app')
-rw-r--r--app/models/project_services/jira_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project_services/jira_service.rb b/app/models/project_services/jira_service.rb
index ebf28dc842c..7b4832b84a8 100644
--- a/app/models/project_services/jira_service.rb
+++ b/app/models/project_services/jira_service.rb
@@ -265,6 +265,7 @@ class JiraService < IssueTrackerService
def find_remote_link(issue, url)
links = jira_request { issue.remotelink.all }
+ return unless links
links.find { |link| link.object["url"] == url }
end