aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java6
1 files changed, 5 insertions, 1 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 a8fd019c..fc9ec444 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
@@ -722,7 +722,11 @@ 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();
+ JsonObject tuningData = Utils.getElementOrDefault(
+ profileJson,
+ "accessory_bag_storage.tuning.slot_0",
+ new JsonObject()
+ ).getAsJsonObject();
if (tuningData.entrySet().isEmpty()) return null;
tuningInfo = new LinkedHashMap<>();