- NPE prevention in GauntletWinLose.

This commit is contained in:
Agetian
2017-05-23 16:51:21 +00:00
parent 10ea7f0eb3
commit 346a8f81b5

View File

@@ -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);