aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-11-13 11:54:51 +0100
committerGitHub <noreply@github.com>2021-11-13 11:54:51 +0100
commit0d74e49d429badd03f5f881715c637a1f06b0d88 (patch)
tree8352acaa8be1c7f32231222bb3a1f0f5a9cdbbc4 /src
parentc37dab7e54654c033bfff63461490bac6c86f6c7 (diff)
downloadNotEnoughUpdates-0d74e49d429badd03f5f881715c637a1f06b0d88.tar.gz
NotEnoughUpdates-0d74e49d429badd03f5f881715c637a1f06b0d88.tar.bz2
NotEnoughUpdates-0d74e49d429badd03f5f881715c637a1f06b0d88.zip
maybe fix a 1/10000000000000000 crash (#23)
* maybe fix a 1/10000000000000000 crash * Update AuctionSearchOverlay.java * Update AuctionSearchOverlay.java
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java
index fb1025f4..5e8625b0 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java
@@ -148,7 +148,7 @@ public class AuctionSearchOverlay {
int num = 0;
synchronized (autocompletedItems) {
String[] autoCompletedItemsArray = autocompletedItems.toArray(new String[0]);
- for (int i = 0; i < autocompletedItems.size(); i++) {
+ for (int i = 0; i < autoCompletedItemsArray.length; i++) {
String str = autoCompletedItemsArray[i];
JsonObject obj = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(str);
if (obj != null) {