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