mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
fix(ModToolSanctionInfoComposer): OoB
This commit is contained in:
parent
2ee6332aed
commit
ec72aa6dec
@ -38,7 +38,7 @@ public class ModToolSanctionInfoComposer extends MessageComposer {
|
|||||||
ModToolSanctionItem item = modToolSanctionItems.get(modToolSanctionItems.size() - 1);
|
ModToolSanctionItem item = modToolSanctionItems.get(modToolSanctionItems.size() - 1);
|
||||||
|
|
||||||
ModToolSanctionItem prevItem = null;
|
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);
|
prevItem = modToolSanctionItems.get(modToolSanctionItems.size() - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user