diff --git a/engine/src/core/com/jme3/input/InputManager.java b/engine/src/core/com/jme3/input/InputManager.java index 55f21c9a2..08fd776b5 100644 --- a/engine/src/core/com/jme3/input/InputManager.java +++ b/engine/src/core/com/jme3/input/InputManager.java @@ -651,8 +651,8 @@ public class InputManager implements RawInputListener { * @return an array of all joysticks installed on the system. */ public Joystick[] getJoysticks() { - if (joyInput == null){ - throw new InvalidStateException("Joystick Input is disabled"); + if (joystick == null){ + throw new IllegalStateException("Joystick Input is disabled"); } return joysticks; }