java.lang.IndexOutOfBoundsException

Invalid index 3, size is 2

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 web7241

  • Invalid index 3, size is 2
  • via Stack Overflow by connor murry
    , 1 year ago
    Invalid index 3, size is 2
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 3, size is 2 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.yitter.comment.CommentAdapter.lambda$incrementLikeCount$33(CommentAdapter.java:260) at com.yitter.comment.CommentAdapter.access$lambda$6(CommentAdapter.java:0) at com.yitter.comment.CommentAdapter$$Lambda$9.done(Unknown Source) at com.parse.ParseTaskUtils$2$1.run(ParseTaskUtils.java:116) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

    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

    10 times, 1 year ago
    3 times, 1 month ago
    81 times, 1 month ago
    Unknown user
    Once, 3 months ago
    4 times, 4 months ago
    241 more bugmates