Invalid index 0, 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.


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 Micha-Btz
  • via GitHub by itscam
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException( at java.util.ArrayList.get( at at at org.horaapps.leafpic.activities.SingleMediaActivity.onPrepareOptionsMenu( at at at at at$AppCompatWindowCallbackBase.onPreparePanel( at at$ToolbarCallbackWrapper.onPreparePanel( at at$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke( at$ at

    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

    3 times, last one
    Indri YunitaIndri Yunita
    81 times, last one
    4 times, last one
    241 more bugmates