Skip to content

Commit

Permalink
Fixed possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTemportalist committed Nov 28, 2014
1 parent 345704f commit 5f725cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/client/ArmorControls.java
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 5f725cb

Please sign in to comment.