From afc3b2958dd6d4078021da3f54607006403690b3 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Sun, 19 Nov 2023 00:44:57 +1100 Subject: Fix crash when accessory bag is empty in pv (#925) --- .../moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java index 0440d018..aac33cfa 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java @@ -728,6 +728,7 @@ public class SkyblockProfiles { JsonObject profileJson = getProfileJson(); if (Utils.getElement(profileJson, "accessory_bag_storage.tuning") == null) return null; JsonObject tuningData = Utils.getElement(profileJson, "accessory_bag_storage.tuning.slot_0").getAsJsonObject(); + if (tuningData.entrySet().isEmpty()) return null; tuningInfo = new LinkedHashMap<>(); for (String stat : tuningStats) { -- cgit