Commit b4229239 authored by Phillip Webb's avatar Phillip Webb

Protect against NPE in server tests

Update `AbstractApplicationLauncher` to not attempt to shutdown
the process if startup fails.
parent e28338d6
...@@ -57,7 +57,9 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback, AfterE ...@@ -57,7 +57,9 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback, AfterE
@Override @Override
public void afterEach(ExtensionContext context) throws Exception { public void afterEach(ExtensionContext context) throws Exception {
this.process.destroy(); if (this.process != null) {
this.process.destroy();
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment