Skip to content

Commit

Permalink
[FIX JENKINS-44769] Don't access response when called from CLI
Browse files Browse the repository at this point in the history
(cherry picked from commit 83671af)
  • Loading branch information
daniel-beck authored and olivergondza committed Jul 4, 2017
1 parent 92a3e42 commit 2888032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/jenkins/model/Jenkins.java
Expand Up @@ -4129,7 +4129,9 @@ public void doRestart(StaplerRequest req, StaplerResponse rsp) throws IOExceptio
restart();
}

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

/**
Expand Down

0 comments on commit 2888032

Please sign in to comment.