Applied Energistics 2

Applied Energistics 2

156M Downloads

Crafting Status Crash

shartte opened this issue ยท 0 comments

commented

Caused by client having an entry with what==null in their crafting status data.

We could be more defensive about this when receiving malformed packets / updates and log more aggressively / drop the invalid entries.

java.lang.NullPointerException: Cannot invoke "appeng.api.stacks.AEKey.formatAmount(long, appeng.api.stacks.AmountFormat)" because the return value of "appeng.menu.me.crafting.CraftingStatusEntry.getWhat()" is null
	at appeng.client.gui.me.crafting.CraftingStatusTableRenderer.getEntryDescription(CraftingStatusTableRenderer.java:52) ~[appliedenergistics2-forge-15.0.9-beta.jar%23176!/:15.0.9-beta] {re:classloading}
	at appeng.client.gui.me.crafting.CraftingStatusTableRenderer.getEntryDescription(CraftingStatusTableRenderer.java:35) ~[appliedenergistics2-forge-15.0.9-beta.jar%23176!/:15.0.9-beta] {re:classloading}
	at appeng.client.gui.me.crafting.AbstractTableRenderer.render(AbstractTableRenderer.java:98) ~[appliedenergistics2-forge-15.0.9-beta.jar%23176!/:15.0.9-beta] {re:classloading}
	at appeng.client.gui.me.crafting.CraftingCPUScreen.drawFG(CraftingCPUScreen.java:130) ~[appliedenergistics2-forge-15.0.9-beta.jar%23176!/:15.0.9-beta] {re:classloading}
	at appeng.client.gui.AEBaseScreen.m_280003_(AEBaseScreen.java:398) ~[appliedenergistics2-forge-15.0.9-beta.jar%23176!/:15.0.9-beta] {re:mixin,re:classloading}
	at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.m_88315_(AbstractContainerScreen.java:116) ~[client-1.20.1-20230612.114412-srg.jar%23596!/:?]
[...]