aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-11-19 00:44:57 +1100
committerGitHub <noreply@github.com>2023-11-18 14:44:57 +0100
commitafc3b2958dd6d4078021da3f54607006403690b3 (patch)
tree5d02374a934c45f5a9c601a1216c7b3c01072938 /src/main/java/io
parentea10ac8a26ca473ba341926f7a2c806c5887ab36 (diff)
downloadNotEnoughUpdates-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.java1
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) {