
Rendering crash with abyssalcraft
ym1025 opened this issue ยท 8 comments
Describe the bug
I right clicked on Applied Integration's Energy Interface,on GUI, I moved the cursor on the slot,Minecraft crashed.
And I re-joined the world, a little later,I had move server selection screen.
To Reproduce
1.right click on energy interface
2.cursor move under slot
Expected behavior
some texts will display
Screenshots
If applicable, add screenshots to help explain your problem.
Enviroment
- Mod version:8.0.16.1
- Applied energistics 2 version:rv6-stable-7
- Forge version:14.23.5.2847
Additional context
Crash report: https://pastebin.com/pYAyMDcC
log: https://pastebin.com/kC0sdh7H (Just a little bit towards the end)
This issue on Abyssalcraft's Github: Shinoow/AbyssalCraft#403
No, the issue is related to you inserting a null into a tooltip (which shouldn't have any null values).
https://github.com/AzazeII/Applied-Integrations/blob/1.12.2/src/main/java/AppliedIntegrations/Gui/Part/GuiEnergyInterface.java#L144
This line calls the following:
https://github.com/AzazeII/Applied-Integrations/blob/1.12.2/src/main/java/AppliedIntegrations/api/Storage/EnergyStack.java#L71-L77
Which can return null (and as the crash shows, does). Due to the fact that the tooltip list isn't empty, the code related to tooltip handling will continue to process, which then crashes on my end when a null value is presented to my event handler (as the nonnull list shouldn't contain any null values).
Null check the energy name before adding it to the tooltip!
Thanks for your response. Now i see this issue is related to my mod. I'll replace null in return with "NULL" to make sure this issue will not crash game and only show "NULL" in tooltip. Also i'll null check the energy name in all GUIs where energy slot widget is used
I'm not sure if this last commit really fixes the issue (don't have time to run it with abyssalcraft right know), but by logic it should fix this issue.
If my computer will survive three running IDEs and minecraft i'll test it and upload new version if it fixes issue
As you can see from crashlog
java.lang.NullPointerException at com.shinoow.abyssalcraft.client.handlers.AbyssalCraftClientEventHooks.tooltipFont(AbyssalCraftClientEventHooks.java:291) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_1714_AbyssalCraftClientEventHooks_tooltipFont_Pre.invoke(.dynamic)
This issue is related to custom tooltip handler from AbyssalCraft. I think you need to submit issue to AbyssalCraft GitHub