Tubes Reloaded

Tubes Reloaded

2M Downloads

Crash: Null Pointer Exception in TubeTileEntity

Vaelzan opened this issue ยท 1 comments

commented

In the 'getCapability' function, 'side' is nullable, but the function body doesn't perform a null check, leading to a crash if getCapability is called without the 'side' parameter being present and 'cap' is ITEM_HANDLER_CAPABILITY.

return this.handlerOptionals[side.getIndex()].cast(); // T is <IItemHandler> here, which our handler implements

commented

Fixed in 1.14.4-1.1.0c, thank you for finding this!