NullPointerException if the ItemRenderer key is pressed when not in a world

Issue #121 resolved
André Carvalho created an issue

(I tried searching for this bug and nothing came up; I apologize if it's known/fixed)

If you press the ItemRenderer key (default is 0 [zero]) when not in a world, Minecraft will crash with a NullPointerException:

java.lang.NullPointerException at binnie.extrabees.nei.ExtraBeeKeyHandler.keyUp(ExtraBeeKeyHandler.java:44) at cpw.mods.fml.client.registry.KeyBindingRegistry$KeyHandler.keyTick(KeyBindingRegistry.java:117) at cpw.mods.fml.client.registry.KeyBindingRegistry$KeyHandler.tickStart(KeyBindingRegistry.java:90) at cpw.mods.fml.common.SingleIntervalHandler.tickStart(SingleIntervalHandler.java:16) at cpw.mods.fml.common.FMLCommonHandler.tickStart(FMLCommonHandler.java:119) at cpw.mods.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:356) at net.minecraft.client.Minecraft.l(Minecraft.java:1455) at net.minecraft.client.Minecraft.J(Minecraft.java:846) at net.minecraft.client.Minecraft.run(Minecraft.java:771) at java.lang.Thread.run(Unknown Source)

Steps to reproduce this problem: -Create a new world, and in its seed or name, type something that has a 0; OR -When changing the controls, outside any world (i.e., main menu), try to change the ItemRenderer key. The game should crash immediately after its remapped. OR -Just press the ItemRenderer key while a world is not loaded.

Comments (1)

  1. Log in to comment