java.lang.ArrayIndexOutOfBoundsException: length=3; index=3

Stack Overflow | Lechat Noir | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Fragment activity crash on item click

    Stack Overflow | 5 months ago | Lechat Noir
    java.lang.ArrayIndexOutOfBoundsException: length=3; index=3

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=3; index=3

      at ssip.ssip.test$1.onItemSelected()
    2. ssip.ssip
      test$1.onItemSelected
      1. ssip.ssip.test$1.onItemSelected(test.java:51)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.fireOnSelected(AdapterView.java:1165)
      2. android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:1154)
      3. android.widget.AdapterView.access$300(AdapterView.java:59)
      4. android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:1121)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:158)
      8. android.app.ActivityThread.main(ActivityThread.java:7229)
      8 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames