diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-11-13 11:54:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 11:54:51 +0100 |
commit | 0d74e49d429badd03f5f881715c637a1f06b0d88 (patch) | |
tree | 8352acaa8be1c7f32231222bb3a1f0f5a9cdbbc4 | |
parent | c37dab7e54654c033bfff63461490bac6c86f6c7 (diff) | |
download | NotEnoughUpdates-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
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java | 2 |
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) { |