Hi, I am getting a NullPointerException but am not entirely sure why.
I have added the resources folder to the CLASSPATH.
I am using Eclipse Neon.
I can see that gameItems is null but still trying to figure out why this is.
Error log:
java.lang.NullPointerException
at com.harryradford.game.DummyGame.cleanup(DummyGame.java:194)
at com.harryradford.engine.GameEngine.cleanup(GameEngine.java:77)
at com.harryradford.engine.GameEngine.run(GameEngine.java:41)
at java.lang.Thread.run(Thread.java:748)
at com.harryradford.engine.GameEngine.start(GameEngine.java:27)
at com.harryradford.game.Main.main(Main.java:13)
Hi, I am getting a NullPointerException but am not entirely sure why.
Error log: java.lang.NullPointerException at com.harryradford.game.DummyGame.cleanup(DummyGame.java:194) at com.harryradford.engine.GameEngine.cleanup(GameEngine.java:77) at com.harryradford.engine.GameEngine.run(GameEngine.java:41) at java.lang.Thread.run(Thread.java:748) at com.harryradford.engine.GameEngine.start(GameEngine.java:27) at com.harryradford.game.Main.main(Main.java:13)
Zipped project: Ch7lwjglbook.zip