diff --git a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java index fc776429ba..e14429560c 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java +++ b/vassal-app/src/main/java/VASSAL/build/module/PlayerRoster.java @@ -772,9 +772,12 @@ protected String promptForSide(String newSide) { } else { fromWizard = true; + if (newSide == null) { + newSide = ""; + } } - while (newSide != null && !newSide.isEmpty()) { // Loops until a valid side is found or op is canceled (repeats side check to minimuse race condition window) + while (newSide != null) { // Loops until a valid side is found or op is canceled (repeats side check to minimuse race condition window) for (final PlayerInfo p : players) { alreadyTaken.add(p.side);