From a9c58929460830662f28a2ebb5b3d09c687bd21d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Thu, 22 Dec 2022 19:38:21 +0100 Subject: Merge pull request #501 * ArrayIndexOutOfBoundsException * just change the condition to >= instead of == --- .../notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java b/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java index d3b9c04d..ef2a52bb 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java @@ -118,6 +118,7 @@ public class GuiOptionEditorDraggableList extends GuiOptionEditor { int i = 0; int yOff = 0; for (int strIndex : activeText) { + if (strIndex >= exampleText.length) continue; String str = exampleText[strIndex]; String[] multilines = str.split("\n"); -- cgit