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