fix: NPE. Closes #896.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user