aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2022-12-22 19:38:21 +0100
committerGitHub <noreply@github.com>2022-12-22 19:38:21 +0100
commita9c58929460830662f28a2ebb5b3d09c687bd21d (patch)
treeeece0714a5e1f65d69435f19327fdfcfe9467cf9 /src/main/java/io
parent2bb3cb42e890a80205928d19fef6538860f142fe (diff)
downloadNotEnoughUpdates-a9c58929460830662f28a2ebb5b3d09c687bd21d.tar.gz
NotEnoughUpdates-a9c58929460830662f28a2ebb5b3d09c687bd21d.tar.bz2
NotEnoughUpdates-a9c58929460830662f28a2ebb5b3d09c687bd21d.zip
Merge pull request #501
* ArrayIndexOutOfBoundsException * just change the condition to >= instead of ==
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java1
1 files changed, 1 insertions, 0 deletions
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");