Just Enough Items (JEI)

Just Enough Items (JEI)

386M Downloads

[Bug]: Tooltip error

bhodges7 opened this issue ยท 1 comments

commented

Steps to Reproduce the Bug

Open inventory or any other interface for crafting/smelting etc. Put cursor on a selected item/block on the right-hand side

Expected Behavior

To display name of item/block

Actual Behavior

Shows "Tooltip error, see log"

Mod Pack URL (Optional)

No response

Mod Pack Version (Optional)

No response

Extra Notes (Optional)

No response

latest.log

https://github.com/bhodges7/minecraft-logs/blob/main/latest.log

commented

Thanks for the report!
Here's the relevant part of the log:

[20:33:22] [Render thread/ERROR]: Caught an error rendering an Ingredient's tooltip:

-- Ingredient --
Details:
	Name: Shield
	Mod's Name: Minecraft
	Registry Name: minecraft:shield
	Class Name: class net.minecraft.world.item.ItemStack
	toString Name: 1 shield
	Unique Id for JEI (for JEI Blacklist): minecraft:shield
	Ingredient Type for JEI: class net.minecraft.world.item.ItemStack
	Error Info gathered from JEI: 1 shield minecraft:shield nbt:{Damage:0}

-- Stack Trace --

java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because the return value of "java.util.Map.get(Object)" is null
	at TRANSFORMER/[email protected]/org.infernalstudios.shieldexp.events.ShieldExpansionEvents.getShieldValue(ShieldExpansionEvents.java:246)
	at TRANSFORMER/[email protected]/org.infernalstudios.shieldexp.events.TooltipEvents.validate(TooltipEvents.java:61)
	at TRANSFORMER/[email protected]/org.infernalstudios.shieldexp.events.TooltipEvents.tooltip(TooltipEvents.java:38)
	at TRANSFORMER/[email protected]/org.infernalstudios.shieldexp.events.TooltipEvents.onTooltipCreate(TooltipEvents.java:24)
	at TRANSFORMER/[email protected]/org.infernalstudios.shieldexp.events.__TooltipEvents_onTooltipCreate_ItemTooltipEvent.invoke(.dynamic)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
	at TRANSFORMER/[email protected]/net.minecraftforge.event.ForgeEventFactory.onItemTooltip(ForgeEventFactory.java:360)
	at TRANSFORMER/[email protected]/net.minecraft.world.item.ItemStack.m_41651_(ItemStack.java:763)
	at TRANSFORMER/[email protected]/mezz.jei.library.render.ItemStackRenderer.getTooltip(ItemStackRenderer.java:36)
	at TRANSFORMER/[email protected]/mezz.jei.library.render.ItemStackRenderer.getTooltip(ItemStackRenderer.java:18)
	at TRANSFORMER/[email protected]/mezz.jei.common.util.SafeIngredientUtil.getTooltip(SafeIngredientUtil.java:56)
	at TRANSFORMER/[email protected]/mezz.jei.gui.ingredients.IngredientInformationUtil.getTooltipStrings(IngredientInformationUtil.java:31)
	at TRANSFORMER/[email protected]/mezz.jei.gui.ingredients.ListElementInfo.getTooltipStrings(ListElementInfo.java:110)
	at TRANSFORMER/[email protected]/mezz.jei.gui.search.ElementPrefixParser.lambda$new$2(ElementPrefixParser.java:41)
	at TRANSFORMER/[email protected]/mezz.jei.core.search.PrefixInfo.getStrings(PrefixInfo.java:35)
	at TRANSFORMER/[email protected]/mezz.jei.core.search.PrefixedSearchable.getStrings(PrefixedSearchable.java:20)
	at TRANSFORMER/[email protected]/mezz.jei.gui.search.ElementSearch.add(ElementSearch.java:62)
	at TRANSFORMER/[email protected]/mezz.jei.gui.ingredients.IngredientFilter.addIngredient(IngredientFilter.java:102)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
	at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at TRANSFORMER/[email protected]/mezz.jei.gui.ingredients.IngredientFilter.<init>(IngredientFilter.java:89)
	at TRANSFORMER/[email protected]/mezz.jei.gui.startup.JeiGuiStarter.start(JeiGuiStarter.java:108)
	at TRANSFORMER/[email protected]/mezz.jei.forge.plugins.forge.ForgeGuiPlugin.registerRuntime(ForgeGuiPlugin.java:34)
	at TRANSFORMER/[email protected]/mezz.jei.library.startup.JeiStarter.lambda$start$2(JeiStarter.java:156)
	at TRANSFORMER/[email protected]/mezz.jei.library.load.PluginCaller.callOnPlugins(PluginCaller.java:27)
	at TRANSFORMER/[email protected]/mezz.jei.library.startup.JeiStarter.start(JeiStarter.java:156)
	at TRANSFORMER/[email protected]/mezz.jei.forge.startup.StartEventObserver.transitionState(StartEventObserver.java:137)
	at TRANSFORMER/[email protected]/mezz.jei.forge.startup.StartEventObserver.onEvent(StartEventObserver.java:100)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:260)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:252)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315)
	at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296)
	at TRANSFORMER/[email protected]/net.minecraft.client.multiplayer.ClientPacketListener.m_5859_(ClientPacketListener.java:1451)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ClientboundUpdateTagsPacket.m_5797_(ClientboundUpdateTagsPacket.java:35)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ClientboundUpdateTagsPacket.m_5797_(ClientboundUpdateTagsPacket.java:11)
	at TRANSFORMER/[email protected]/net.minecraft.network.protocol.PacketUtils.m_263899_(PacketUtils.java:22)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:156)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:130)
	at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.m_18699_(BlockableEventLoop.java:115)
	at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1106)
	at TRANSFORMER/[email protected]/net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718)
	at TRANSFORMER/[email protected]/net.minecraft.client.main.Main.main(Main.java:218)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99)
	at MC-BOOTSTRAP/[email protected]/net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.run(Launcher.java:108)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.Launcher.main(Launcher.java:78)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
	at MC-BOOTSTRAP/[email protected]/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
	at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141)

This issue is caused by infernalstudios.shieldexp, it has been reported to them here: infernalstudios/Shield-Expansion#38