From 5f725cb97153c4f54c720b9420840c49b054bb07 Mon Sep 17 00:00:00 2001 From: TheTemporatlist Date: Fri, 28 Nov 2014 10:53:11 -0500 Subject: [PATCH] Fixed possible NPE --- src/main/java/tconstruct/client/ArmorControls.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/client/ArmorControls.java b/src/main/java/tconstruct/client/ArmorControls.java index e7f33c46157..d0a7a39eacb 100644 --- a/src/main/java/tconstruct/client/ArmorControls.java +++ b/src/main/java/tconstruct/client/ArmorControls.java @@ -104,7 +104,7 @@ public void keyEventSpecial(KeyBindingPressedEvent event) { private void checkKeys() { for (KeyBinding key : this.keys) { - if (this.isKeyActive(key.getKeyCode())) { + if (key != null && this.isKeyActive(key.getKeyCode())) { this.keyPressed(key); } }