mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- NPE prevention in GauntletWinLose.
This commit is contained in:
@@ -65,7 +65,9 @@ public class GauntletWinLose extends ControlWinLose {
|
||||
sb.append(message2);
|
||||
}
|
||||
else {
|
||||
sb.deleteCharAt(sb.length() - 1); //remove final new line character
|
||||
if (sb.length() > 0) {
|
||||
sb.deleteCharAt(sb.length() - 1); //remove final new line character
|
||||
}
|
||||
}
|
||||
|
||||
SOptionPane.showMessageDialog(sb.toString(), "Gauntlet Progress", icon);
|
||||
|
||||
Reference in New Issue
Block a user