Chance Cubes

Chance Cubes

46M Downloads

Server crash - inventory.setInventorySlotContents throws Null exception

generrosity opened this issue ยท 4 comments

commented

Hello!

Chance cubes has created a host of love and hate and contention and we love it.

I am running a little modified FC3 server, and the last two crashes in the past two days have both been due to null pointer exceptions not being caught - it looks like it checking to see that the inventory isn't null and throwing an exception when it is.

Unfortunately, the main server log goes straight to crash so I'm not sure which 'reward' event was triggered (as this is likely reported after the event is resolved, correct?) and the second event doesn't have a player meta attached, even though the same player opened it - I am checking to see if he maybe vein-mined it instead that time.

     java.lang.NullPointerException: The validated object is null
    <...>
    at net.minecraft.entity.player.InventoryPlayer.setInventorySlotContents(InventoryPlayer.java:573)

Attached are the two crash reports,
7-7/18 - https://pastebin.com/ZvWQ9W5f
8-7/18 - https://pastebin.com/SXvcSZtx

Again - much love and appreciation from our corner of New Zealand and the FoolCraft space.

Thanks!

commented

What version on MC is this and what version of the mod is this?

commented

Haha no worry! And no rush - life comes first, I should remember to add those things in too, as FC3 release is likely not up to date anyway.

Thanks!

commented

Oh strange - here is the info from the file.

-- System Details --
Minecraft Version: 1.12.2
| UCHIJAAAA | forge | 14.23.4.2705 | forge-1.12.2-14.23.4.2705-universal.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| UCHIJAAAA | chancecubes | 1.12.2-3.1.0.217 | ChanceCubes-1.12.2-3.1.0.217.jar | None

commented

I totally forgot that info was in the file. My bad. I'll look into the issue