Fix NullPointerException when launcher launched two game at the same time
This commit is contained in:
1 parent
494b27cc22
commit
4e9fc57aa4
1 file changed
+2
@@ -87,6 +87,8 @@ public final class Main extends Application {
|
||||
|
||||
public static void stopWithoutPlatform() {
|
||||
JFXUtilities.runInFX(() -> {
|
||||
if (Controllers.getStage() == null)
|
||||
return;
|
||||
Controllers.getStage().close();
|
||||
|
||||
Logging.LOG.info("Shutting down executor services.");
|
||||
|
||||
Reference in new issue
Block a user