Fix Reactive...Context NPE

Fix possible NPE in `ReactiveWebServerApplicationContext`.

See gh-14666
pull/14460/merge
Phillip Webb 6 years ago
parent 1774a282b0
commit 2b6bdfe277

@ -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();
}

Loading…
Cancel
Save