aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-22 16:43:20 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-22 16:43:20 +0200
commit1ff9c6ead7343eebc1f0efc980d5f29faa8f68ec (patch)
tree694179d8925b916cc0ff3769eb64ae78c00b341d /src/main/java/at/hannibal2/skyhanni/features
parent5b98edd63bb55754349508e0a6a6e6acca29b2d5 (diff)
downloadskyhanni-1ff9c6ead7343eebc1f0efc980d5f29faa8f68ec.tar.gz
skyhanni-1ff9c6ead7343eebc1f0efc980d5f29faa8f68ec.tar.bz2
skyhanni-1ff9c6ead7343eebc1f0efc980d5f29faa8f68ec.zip
Fixed the error message with HEMOVIBE not found in NEU Repo
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
index 5e2321e24..e6f646ef1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataHolder.kt
@@ -48,8 +48,13 @@ class BazaarDataHolder {
fun getData(internalName: String) = bazaarData[internalName] ?: createNewData(internalName)
- private fun createNewData(internalName: String): BazaarData {
- val displayName = NEUItems.getItemStack(internalName).name!!.removeColor()
+ private fun createNewData(internalName: String): BazaarData? {
+ val stack = NEUItems.getItemStackOrNull(internalName)
+ if (stack == null) {
+ LorenzUtils.debug("Bazaar data is null: '$internalName'")
+ return null
+ }
+ val displayName = stack.name!!.removeColor()
val sellPrice = NEUItems.getPrice(internalName, true)
val buyPrice = NEUItems.getPrice(internalName, false)
val npcPrice = npcPrices[internalName].let {