Merge pull request #1203 from TheTemportalist/master

Fixed possible NPE
This commit is contained in:
boni committed 2014-12-04 16:14:05 +01:00
commit d4d859b71b
1 file changed
+1 -1
@@ -104,7 +104,7 @@ public class ArmorControls {
private void checkKeys() {
for (KeyBinding key : this.keys) {
if (this.isKeyActive(key.getKeyCode())) {
if (key != null && this.isKeyActive(key.getKeyCode())) {
this.keyPressed(key);
}
}