Skip to content
Permalink
Browse files

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

  • Loading branch information...
daniel-beck committed Jun 9, 2017
1 parent 0b12bd3 commit 83671af504197f031c1e89a5122a1d4168288bb4
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 83671af

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