diff --git a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java index b649b83c424..9e7048621f5 100644 --- a/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java +++ b/forge-gui/src/main/java/forge/player/PlayerControllerHuman.java @@ -1445,7 +1445,11 @@ public class PlayerControllerHuman extends PlayerController { bw.close(); } } catch (Exception e) { - SOptionPane.showErrorDialog(e.getMessage()); + String err = e.getClass().getName(); + if (e.getMessage() != null) { + err += ": " + e.getMessage(); + } + SOptionPane.showErrorDialog(err); e.printStackTrace(); } } @@ -1478,6 +1482,7 @@ public class PlayerControllerHuman extends PlayerController { Player pPriority = game.getPhaseHandler().getPriorityPlayer(); if (pPriority == null) { SGuiDialog.message("No player has priority at the moment, so game state cannot be setup."); + return; } state.applyToGame(game); }