Protect against NPE in server tests
Update `AbstractApplicationLauncher` to not attempt to shutdown the process if startup fails.
This commit is contained in:
parent
e28338d6cd
commit
b4229239ab
|
|
@ -57,7 +57,9 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback, AfterE
|
|||
|
||||
@Override
|
||||
public void afterEach(ExtensionContext context) throws Exception {
|
||||
this.process.destroy();
|
||||
if (this.process != null) {
|
||||
this.process.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue