fix: NPE. Closes #896.

This commit is contained in:
huanghongxun
2021-06-12 18:43:42 +08:00
parent 66f4c022d5
commit 7c11ce53f3

View File

@@ -488,7 +488,7 @@ public final class LauncherHelper {
super.onStop(success, executor);
Platform.runLater(() -> {
if (!success) {
future.completeExceptionally(executor.getException());
future.completeExceptionally(Optional.ofNullable(executor.getException()).orElseGet(InterruptedException::new));
} else {
future.complete(null);
}