From e957436a013ba26bd02fad1d940d0c111c973064 Mon Sep 17 00:00:00 2001 From: Thomas Worm Date: Tue, 2 Apr 2019 21:49:13 +0200 Subject: [PATCH] Fixed IndexOutOfBoundsException on signs update --- src/main/java/com/gamingmesh/jobs/Signs/SignUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/Signs/SignUtil.java b/src/main/java/com/gamingmesh/jobs/Signs/SignUtil.java index 4f894e2d..ca07e429 100644 --- a/src/main/java/com/gamingmesh/jobs/Signs/SignUtil.java +++ b/src/main/java/com/gamingmesh/jobs/Signs/SignUtil.java @@ -175,6 +175,8 @@ public class SignUtil { if (!UpdateHead(sign, PlayerList.get(0).getPlayerName(), timelapse)) timelapse--; } else { + if (one.GetNumber() > PlayerList.size()) + continue; TopList pl = PlayerList.get(one.GetNumber() - 1); String PlayerName = pl.getPlayerName(); if (PlayerName.length() > 8) {