Skip to content

Commit

Permalink
Check for null user on trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
a-hacker committed Jan 18, 2022
1 parent 86975a3 commit 1482777
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public JenkinsResponse triggerJob(String projectKey, ApplicationUser user, Job j
}

String buildUrl = job.buildUrl(jenkinsServer, bitbucketVariables, false);
boolean prompt = !user.getSlug().equals(jenkinsServer.getUser());
boolean prompt = user == null || !user.getSlug().equals(jenkinsServer.getUser());

String csrfHeader = null;
if (jenkinsServer.getCsrfEnabled()) {
Expand Down

0 comments on commit 1482777

Please sign in to comment.