From ec72aa6decda55ff27af211b7d21243354631a27 Mon Sep 17 00:00:00 2001 From: David Silva Date: Mon, 27 Jan 2020 19:06:59 -0500 Subject: [PATCH] fix(ModToolSanctionInfoComposer): OoB --- .../messages/outgoing/modtool/ModToolSanctionInfoComposer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolSanctionInfoComposer.java b/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolSanctionInfoComposer.java index 54ae2d60..ca323066 100644 --- a/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolSanctionInfoComposer.java +++ b/src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolSanctionInfoComposer.java @@ -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); }