MondayHopscotch / Helm

1 stars 0 forks source link

NPE on Palette select screen #349

Open MondayHopscotch opened 5 years ago

MondayHopscotch commented 5 years ago
java.lang.NullPointerException: 
  at com.bitdecay.helm.screen.PaletteSelectScreen$1.clicked (PaletteSelectScreen.java:77)
  at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp (ClickListener.java:89)
  at com.badlogic.gdx.scenes.scene2d.InputListener.handle (InputListener.java:58)
  at com.badlogic.gdx.scenes.scene2d.Stage.touchUp (Stage.java:353)
  at com.badlogic.gdx.backends.android.AndroidInput.processEvents (AndroidInput.java:379)
  at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame (AndroidGraphics.java:457)
  at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1571)
  at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1270)

we may want to rethink how we deselect the rows. instead of tracking the selected row and deselecting it when we pick a new one. we should instead just deselect all rows and select the one we want.