diff --git a/bom/pom.xml b/bom/pom.xml
index 1d5fa04ce2ef..e23d8061cb67 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -62,7 +62,7 @@ THE SOFTWARE.
org.springframework
spring-framework-bom
- 6.1.13
+ 6.1.14
pom
import
@@ -70,7 +70,7 @@ THE SOFTWARE.
org.springframework.security
spring-security-bom
- 6.3.3
+ 6.3.4
pom
import
diff --git a/core/src/main/java/jenkins/model/Jenkins.java b/core/src/main/java/jenkins/model/Jenkins.java
index d3257fb42e09..a9fd679faf34 100644
--- a/core/src/main/java/jenkins/model/Jenkins.java
+++ b/core/src/main/java/jenkins/model/Jenkins.java
@@ -4659,7 +4659,7 @@ public void generateNotFoundResponse(StaplerRequest2 req, StaplerResponse2 rsp)
*/
@Deprecated(since = "2.414")
public HttpResponse doSafeRestart(StaplerRequest req) throws IOException, ServletException, RestartNotSupportedException {
- return doSafeRestart(StaplerRequest.toStaplerRequest2(req), null);
+ return doSafeRestart(req != null ? StaplerRequest.toStaplerRequest2(req) : null, null);
}
/**
@@ -4692,7 +4692,7 @@ public HttpResponse doSafeRestart(StaplerRequest2 req, @QueryParameter("message"
@StaplerNotDispatchable
public HttpResponse doSafeRestart(StaplerRequest req, @QueryParameter("message") String message) throws IOException, javax.servlet.ServletException, RestartNotSupportedException {
try {
- return doSafeRestart(StaplerRequest.toStaplerRequest2(req), message);
+ return doSafeRestart(req != null ? StaplerRequest.toStaplerRequest2(req) : null, message);
} catch (ServletException e) {
throw ServletExceptionWrapper.fromJakartaServletException(e);
}