Merge branch 'patch-1' into 'dev'

fix(ModToolSanctionInfoComposer): OoB

See merge request morningstar/Arcturus-Community!86
This commit is contained in:
Harmonic 2020-01-27 19:10:48 -05:00
commit 7cd8d50371

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