Skip to content
Permalink
Browse files

[FIX JENKINS-44769] Don't access response when called from CLI

(cherry picked from commit 83671af)
  • Loading branch information...
daniel-beck authored and olivergondza committed Jun 9, 2017
1 parent 92a3e42 commit 28880329177a37ae04136ee1eca97c650b4acf6d
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 2888032

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