fix(ModToolSanctionInfoComposer): OoB

This commit is contained in:
David Silva 2020-01-27 19:06:59 -05:00
parent 2ee6332aed
commit ec72aa6dec

View File

@ -38,7 +38,7 @@ public class ModToolSanctionInfoComposer extends MessageComposer {
ModToolSanctionItem item = modToolSanctionItems.get(modToolSanctionItems.size() - 1);
ModToolSanctionItem prevItem = null;
if (modToolSanctionItems.get(modToolSanctionItems.size() - 2) != null) {
if (modToolSanctionItems.size() > 1 && modToolSanctionItems.get(modToolSanctionItems.size() - 2) != null) {
prevItem = modToolSanctionItems.get(modToolSanctionItems.size() - 2);
}