aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2023-02-26 23:30:12 +0900
committerGitHub <noreply@github.com>2023-02-26 23:30:12 +0900
commit23f8a6b604ff1ea785e808e07460cf0bb9ffadfb (patch)
tree0efd545698be14b6842606e16b4b062d1a100f87
parent89a0fff318606246efbe604a63950cc61517feec (diff)
downloadSkyblock-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>
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/SkyblockStatus.java5
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;
}
}