Tom's Simple Storage Mod (Fabric)

Tom's Simple Storage Mod (Fabric)

18M Downloads

NullPointerException when accessing creative window in certain instances.

Tweeter2 opened this issue ยท 0 comments

commented

I would write an as detailed issue report as last time but I unfortunately cant.
In certain 'random' occurrences I get the following error when accessing a creative inventory on a server (no other player has creative on the server):
[15:51:43] [Server thread/ERROR]: Failed to handle packet net.minecraft.class_2813@71272fb8, suppressing error
net.minecraft.class_148: Container click
at knot/net.minecraft.class_1703.method_7593(class_1703.java:304) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_3244.method_12076(class_3244.java:1722) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_2813.method_12191(class_2813.java:71) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_2813.method_11054(class_2813.java:14) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_2600.method_11072(class_2600.java:27) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_3738.run(class_3738.java:18) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_18859(class_1255.java:162) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_4093.method_18859(class_4093.java:23) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:864) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:173) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_16075(class_1255.java:136) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:846) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:840) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_1255.method_5383(class_1255.java:121) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:814) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:702) ~[server-intermediary.jar:?]
at knot/net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281) ~[server-intermediary.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "net.fabricmc.fabric.api.transfer.v1.storage.StorageView.getUnderlyingView()" because "this.view" is null
at knot/com.tom.storagemod.inventory.InventorySlot.nextSlot(InventorySlot.java:114) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.inventory.InventoryChangeTracker.findSlotDestAfter(InventoryChangeTracker.java:174) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.inventory.IInventoryAccess$IInventoryChangeTracker$Delegate.findSlotDestAfter(IInventoryAccess.java:135) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.inventory.IInventoryAccess.pushStack(IInventoryAccess.java:32) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.inventory.MultiInventoryAccess.pushStack(MultiInventoryAccess.java:79) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.block.entity.StorageTerminalBlockEntity.pushStack(StorageTerminalBlockEntity.java:99) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/com.tom.storagemod.menu.StorageTerminalMenu.method_7601(StorageTerminalMenu.java:251) ~[toms_storage_fabric-1.21-2.1.1.jar:?]
at knot/net.minecraft.class_1703.method_30010(class_1703.java:394) ~[server-intermediary.jar:?]
at knot/net.minecraft.class_1703.method_7593(class_1703.java:294) ~[server-intermediary.jar:?]
... 17 more

Full log (it does not really contain more info); https://mclo.gs/CVZE61B
I do not know how to properly recreate it, I only know that it only happens in creative.
Sorry if this is unrelated to Tom's