diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-11-19 00:44:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-18 14:44:57 +0100 |
commit | afc3b2958dd6d4078021da3f54607006403690b3 (patch) | |
tree | 5d02374a934c45f5a9c601a1216c7b3c01072938 /src/main/java/io | |
parent | ea10ac8a26ca473ba341926f7a2c806c5887ab36 (diff) | |
download | NotEnoughUpdates-afc3b2958dd6d4078021da3f54607006403690b3.tar.gz NotEnoughUpdates-afc3b2958dd6d4078021da3f54607006403690b3.tar.bz2 NotEnoughUpdates-afc3b2958dd6d4078021da3f54607006403690b3.zip |
Fix crash when accessory bag is empty in pv (#925)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |