aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-31 11:47:38 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-31 11:47:38 +0200
commit176ff2a1020f741e90fe77ef64dedd401ccbaa8b (patch)
treeca0a9039d5ecc85e02c6ea7ca94dfb20bbf7eb51 /src/main/java/at/hannibal2/skyhanni/features/fishing
parentb7099ea6ba40ae5d832266bfbedea5686068e833 (diff)
downloadskyhanni-176ff2a1020f741e90fe77ef64dedd401ccbaa8b.tar.gz
skyhanni-176ff2a1020f741e90fe77ef64dedd401ccbaa8b.tar.bz2
skyhanni-176ff2a1020f741e90fe77ef64dedd401ccbaa8b.zip
Soft fixing all RepositoryReloadEvent npe errors
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt
index 16fee2d35..9f6527148 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/SeaCreatureManager.kt
@@ -12,7 +12,7 @@ class SeaCreatureManager {
var counter = 0
try {
- val data = event.getConstant("SeaCreatures")!!
+ val data = event.getConstant("SeaCreatures") ?: return
for (variant in data.entrySet().map { it.value.asJsonObject }) {
val chatColor = variant["chat_color"].asString