java - Getting console error -


this question has answer here:

i'm using libgdx trying make game, when run desktoplauncher, error in console:

exception in thread "lwjgl application" java.lang.nullpointerexception     @ com.orhantozan.game.pongmain.render(pongmain.java:216)     @ com.badlogic.gdx.backends.lwjgl.lwjglapplication.mainloop(lwjglapplication.java:215)     @ com.badlogic.gdx.backends.lwjgl.lwjglapplication$1.run(lwjglapplication.java:120) 

what cause of this? dont know error means :(

core: http://pastebin.com/r74wb5xx

desktop: http://pastebin.com/i0w4h4wq

dew class: http://pastebin.com/wupnubbg

make sure dewlist field gets initialized. alternatively change

array<dew> dewlist; 

to

array<dew> dewlist = new array(); 

if possible.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -