ItemMods

ItemMods

157 Downloads

NullPointerException on giveItemStack

3Lord3 opened this issue ยท 3 comments

commented

[19:12:19 ERROR]: Could not pass event InventoryClickEvent to ItemMods v1.3.2 java.lang.NullPointerException: null at com.github.codedoctorde.itemmods.config.ItemConfig.giveItemStack(ItemConfig.java:159) ~[?:?] at com.github.codedoctorde.itemmods.gui.ItemGui$2$9.onEvent(ItemGui.java:211) ~[?:?] at com.gitlab.codedoctorde.api.ui.GuiItem.raiseEvent(GuiItem.java:56) ~[?:?] at com.gitlab.codedoctorde.api.ui.Gui.onInventoryClick(Gui.java:159) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor299.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[minecraft_server.jar:git-Paper-134] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[minecraft_server.jar:git-Paper-134] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[minecraft_server.jar:git-Paper-134] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:2423) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.PacketPlayInWindowClick.a(SourceFile:32) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.PacketPlayInWindowClick.a(SourceFile:10) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1137) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1130) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1260) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1001) ~[minecraft_server.jar:git-Paper-134] at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[minecraft_server.jar:git-Paper-134] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]

image
image

commented

you need an itemstack before giving the item

commented

but i can give it an error message if you want

commented

Okay, add a message