diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-02-26 23:30:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 23:30:12 +0900 |
commit | 23f8a6b604ff1ea785e808e07460cf0bb9ffadfb (patch) | |
tree | 0efd545698be14b6842606e16b4b062d1a100f87 /mod/src | |
parent | 89a0fff318606246efbe604a63950cc61517feec (diff) | |
download | Skyblock-Dungeons-Guide-23f8a6b604ff1ea785e808e07460cf0bb9ffadfb.tar.gz Skyblock-Dungeons-Guide-23f8a6b604ff1ea785e808e07460cf0bb9ffadfb.tar.bz2 Skyblock-Dungeons-Guide-23f8a6b604ff1ea785e808e07460cf0bb9ffadfb.zip |
Fix #342, NPE on SkyblockStatus:153 Crashing game (#343)
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-rwxr-xr-x | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java index 96445f7d..453402a3 100755 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java @@ -150,7 +150,10 @@ public class SkyblockStatus { } } - isOnDungeon = locationName.startsWith("The Catacombs") | foundDungeon; + if (locationName != null) + isOnDungeon = locationName.startsWith("The Catacombs") | foundDungeon; + else + isOnDungeon=false; } } |