fix: NPE. Closes #896.

This commit is contained in:
huanghongxun committed 2021-06-12 18:43:54 +08:00
1 parent 66f4c022d5
commit 7c11ce53f3
1 file changed
+1 -1
@@ -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);
}