Gregtech++ [GT++] [GTplusplus]

Gregtech++ [GT++] [GTplusplus]

94.1k Downloads

Lighter NPE [338]

bartimaeusnek opened this issue ยท 0 comments

commented

Expected Behavior

Opened a Creative tab, expected Items

Current Behavior

Became a NPE

Possible Solution

add a if ( aStack != null && aStack.getTagCompound() != null ) to line 217 in the Electric lighter class

Steps to Reproduce (for bugs)

Provide a link to a live example, or an unambiguous set of steps to
reproduce this bug. Include code to reproduce, if relevant.

  1. Open Creative
  2. Click on a tab that contains the lighter

Crashlog

java.lang.NullPointerException: Updating screen events
at gtPlusPlus.xmod.gregtech.common.items.behaviours.Behaviour_Electric_Lighter.getAdditionalToolTips(Behaviour_Electric_Lighter.java:217)
at gtPlusPlus.xmod.gregtech.common.items.behaviours.Behaviour_Electric_Lighter.getAdditionalToolTips(Behaviour_Electric_Lighter.java:32)

Misc Info

Check all that apply ([ ] -> [x] - use a lowercase x)

  •    Using GT:NH/GT:New Horizons?
  •    Single Player?
  •    Multi Player?