Ledger

Ledger

2M Downloads

Unhandled Null Pointer Exceptions (Events on modded chests cause server crash)

Torun-S opened this issue ยท 1 comments

commented

Expected behavior

Server continuing to run upon interacting with modded chests from More Chest Variants mod, even if those interactions are not logged or logged with partial information.

Observed/actual behavior

Upon interacting with a chest from More Chest Variants mod, the server immediately crashes and requires restart.

Steps/models to reproduce

  1. Use a server with installed Ledger and More Chest Variants v1.5.11.
  2. Create any chest added by the chest mod.
  3. Place an item inside the chest and close it.
  4. Observe the server crashing.

What operating system are you running

Windows

Minecraft version

1.21.4

Ledger version

1.3.7

Logs

https://mclo.gs/bu9xHjE

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

Why am I posting a bug when I have resolved it by removing a different mod? Because the logs show the crash occurs due to an unhandled Null Pointer Exception on part of callbacks in Ledger. The issue isn't necessarily placing items in modded chests, the issue may potentially lie in Ledger handling NPEs gracefully and so I believe may warrant the developer's attention.

commented

Fixed in #304