Applied Energistics 2

Applied Energistics 2

137M Downloads

IGridBlock.getMachineRepresentation is not @Nullable

ruifung opened this issue ยท 2 comments

commented

Despite the interface itself claiming that the method can return null, returning null for this method will crash the game due to ContainerNetworkStatus.java:122 trying to call .isEmpty() on a null item stack.

commented

Duplicate of #3925

commented

Well, yeah, probably should remove that @nullable annotation on that interface and update its javadoc to say that it shouldn't be null (the javadocs say that null is an acceptable value.)