Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

for me, when smart ai is on and i start a battle, the buttons to interact with the opponent take a bit to load and when i click the arrows on the left side of the screen, the game crashes and an error log pops up

java.lang.NullPointerException: Attempt to read from field 'int com.badlogic.gdx.utils.Array.size' on a null object reference in method 'void com.majalis.screens.BattleScreen.changeSelection(int, boolean)'

 at com.majalis.screens.BattleScreen.changeSelection(BattleScreen.java:1042)

 at com.majalis.screens.BattleScreen.-$$Nest$mchangeSelection(Unknown Source:0)

 at com.majalis.screens.BattleScreen$3.clicked(BattleScreen.java:452)

 at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:88)

 at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:71)

 at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:354)

 at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:124)

 at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:124)

 at com.badlogic.gdx.backends.android.DefaultAndroidInput.processEvents(DefaultAndroidInput.java:423)

 at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:503)

 at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1573)

 at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1272)