Skip to content
Permalink
Browse files

Merge pull request #2912 from daniel-beck/JENKINS-44769

[FIX JENKINS-44769] Don't access response when called from CLI
  • Loading branch information...
daniel-beck committed Jun 9, 2017
2 parents 0b12bd3 + 83671af commit c3b1bff6477e05050a40c0e20816bea9cf396534
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/src/main/java/jenkins/model/Jenkins.java
@@ -4129,7 +4129,9 @@ public void doRestart(StaplerRequest req, StaplerResponse rsp) throws IOExceptio
restart();
}

rsp.sendRedirect2(".");
if (rsp != null) {
rsp.sendRedirect2(".");
}
}

/**

0 comments on commit c3b1bff

Please sign in to comment.
You can’t perform that action at this time.