eclipseopenglnullpointerexceptionlwjglbullet

Exception with jbullet+lwjgl?


I get an exception when trying to run my pretty much "hello world" sized project with jbullet and lwjgl in eclipse

Exception in thread "main" java.lang.NullPointerException
    at gameVroom.Objects.ground(Objects.java:42)
    at gameVroom.MainThing.gameLoop(MainThing.java:50)
    at gameVroom.MainThing.main(MainThing.java:104)

Solution

  • A null pointer means that something wasn't properly initialized. Make sure(if using collections) that everything is properly allocated in said collection.