We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am testing my game that I made for android and it keeps giving me the error below:
FATAL EXCEPTION: GLThread 263
Process: processing.test.trimatelegacy, PID: 4879
java.lang.NullPointerException: Attempt to write to null array
at processing.test.trimatelegacy.TrimateLegacy.setup(TrimateLegacy.java:108)
at processing.core.PApplet.handleDraw(Unknown Source:74)
at processing.opengl.PSurfaceGLES$RendererGLES.onDrawFrame(Unknown Source:13)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
I have the code below:
https://github.com/rockyhawk64/Trimate/blob/master/Trimate Legacy Code
Does anyone know what may be triggering that or if there was some sort of typo? I am new to the Android side of processing as I usually use the regular java version. Anything will be appreciated!
Answers
@RockyHawk===
your gun[] is null.