Bug in JInputController.java in SVN Trunk

Started by SamR, May 07, 2006, 00:57:15

Previous topic - Next topic

SamR

JInputController has a bug that crashes lwjgl on startup with NullPointerExceptions.

Some sourceAxes.getIdentifier() are coming up null, so the .equals test is throwing the NullPointerException.

To fix, just add a sourceAxes.getIdentifier()!=null to the 2 loops over axes in the main constructor.  

Can someone with SVN access please fix this?

Thanks,
Sam Reid

Matzon


kevglass

Sorry for the delay - hadn't noticed this post til now.

getIdentifier() shouldn't ever return null - however, I'll make the update (if there's still time before next release) and chase JInput implementations.

SamR - which version of LWJGL and what hardware did you see this on? The latest JInput looks like it won't return a NULL there ever.

Kev