From 0d74e49d429badd03f5f881715c637a1f06b0d88 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sat, 13 Nov 2021 11:54:51 +0100 Subject: maybe fix a 1/10000000000000000 crash (#23) * maybe fix a 1/10000000000000000 crash * Update AuctionSearchOverlay.java * Update AuctionSearchOverlay.java --- .../moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io') 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) { -- cgit