diff options
author | heyngra <heyngra.wspolpraca@gmail.com> | 2022-12-24 02:16:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 12:16:00 +1100 |
commit | 3a00eb285c9f46ee8a0cd615e325c8723a3aa15d (patch) | |
tree | d185ac8787302baadcdfab0d863c6ffea6902d0b /src | |
parent | bd96ab7fcbdba398022686df9ad6ec2acf7a7281 (diff) | |
download | NotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.tar.gz NotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.tar.bz2 NotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.zip |
Fix NullPointerException in ItemTooltipRngListener (#510)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java index 2b7a9bef..d6d7087f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java @@ -210,7 +210,8 @@ public class ItemTooltipRngListener { dungeonData.clear(); JsonObject leveling = Constants.LEVELING; - if (!leveling.has("slayer_boss_xp") || + if (leveling == null || + !leveling.has("slayer_boss_xp") || !leveling.has("slayer_highest_tier") || !leveling.has("slayer_tier_colors") || !leveling.has("rng_meter_dungeon_score")) { |