posted 11 years ago
Hi!
I have a game, and I just added a InputHandler class. The problem is that whenever I run my game, I get a java.lang.nullPointerException in my Player class where the if statement for checking if the key is pressed.
Game
InputHandler
Player
I have tried lots of things but I just cannot figure this out. It's probably something that I just overlooked and can't find. Help is appreciated. Thanks!
This is the error message: