aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheyngra <heyngra.wspolpraca@gmail.com>2022-12-24 02:16:00 +0100
committerGitHub <noreply@github.com>2022-12-24 12:16:00 +1100
commit3a00eb285c9f46ee8a0cd615e325c8723a3aa15d (patch)
treed185ac8787302baadcdfab0d863c6ffea6902d0b
parentbd96ab7fcbdba398022686df9ad6ec2acf7a7281 (diff)
downloadNotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.tar.gz
NotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.tar.bz2
NotEnoughUpdates-3a00eb285c9f46ee8a0cd615e325c8723a3aa15d.zip
Fix NullPointerException in ItemTooltipRngListener (#510)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java3
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")) {