Skip to content

Commit 1f674fc

Browse files
committed
Allow for null to be passed to doSafeRestart
1 parent a4f6f61 commit 1f674fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/jenkins/model/Jenkins.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4667,7 +4667,7 @@ public void generateNotFoundResponse(StaplerRequest2 req, StaplerResponse2 rsp)
46674667
*/
46684668
@Deprecated(since = "2.414")
46694669
public HttpResponse doSafeRestart(StaplerRequest req) throws IOException, ServletException, RestartNotSupportedException {
4670-
return doSafeRestart(StaplerRequest.toStaplerRequest2(req), null);
4670+
return doSafeRestart(req != null ? StaplerRequest.toStaplerRequest2(req) : null, null);
46714671
}
46724672

46734673
/**

0 commit comments

Comments
 (0)