diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index d22a82759..0f7a15618 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -35,7 +35,12 @@ object NEUItems { val itemStack = ItemResolutionQuery(manager) .withKnownInternalName(internalName) - .resolveToItemStack()!! + .resolveToItemStack() + if (itemStack == null) { + val error = "ItemResolutionQuery returns null for internalName $internalName" + LorenzUtils.error(error) + throw RuntimeException(error) + } itemCache[internalName] = itemStack return itemStack.copy() } |