java.lang.IndexOutOfBoundsException

Invalid index 1, size is 0

Samebug tips1

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4266

  • via GitHub by Okamiwolf144
    ,
  • via GitHub by iToobi
    ,
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.example.jingwen.bluetoothlowenergy.MainActivity$1$1.onClick(MainActivity.java:325) at android.support.v7.app.AlertController$AlertParams$3.onItemClick(AlertController.java:959) at android.widget.AdapterView.performItemClick(AdapterView.java:300) at android.widget.AbsListView.performItemClick(AbsListView.java:1143) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3063) at android.widget.AbsListView$3.run(AbsListView.java:3881) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5237) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    filpgamefilpgame
    3 times, last one
    Indri YunitaIndri Yunita
    2 times, last one
    Stefan BrauneStefan Braune
    7 times, last one
    bayukresnobayukresno
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    241 more bugmates