diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2022-12-22 19:38:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 19:38:21 +0100 |
commit | a9c58929460830662f28a2ebb5b3d09c687bd21d (patch) | |
tree | eece0714a5e1f65d69435f19327fdfcfe9467cf9 /src/main/java | |
parent | 2bb3cb42e890a80205928d19fef6538860f142fe (diff) | |
download | NotEnoughUpdates-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')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/core/config/gui/GuiOptionEditorDraggableList.java | 1 |
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"); |