mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 23:39:34 +00:00
Fix Reactive...Context NPE
Fix possible NPE in `ReactiveWebServerApplicationContext`. See gh-14666
This commit is contained in:
+2
-2
@@ -227,14 +227,14 @@ public class ReactiveWebServerApplicationContext
|
||||
|
||||
public static void start(ServerManager manager,
|
||||
Supplier<HttpHandler> handlerSupplier) {
|
||||
if (manager != null) {
|
||||
if (manager != null && manager.server != null) {
|
||||
manager.handler = handlerSupplier.get();
|
||||
manager.server.start();
|
||||
}
|
||||
}
|
||||
|
||||
public static void stop(ServerManager manager) {
|
||||
if (manager != null) {
|
||||
if (manager != null && manager.server != null) {
|
||||
try {
|
||||
manager.server.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user