java.lang.IndexOutOfBoundsException

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 web7495

  • via Appcelerator JIRA by Dawson Toth, 1 year ago
    Invalid index 0, size is 0
  • via GitHub by tmontanaro
    , 1 year ago
    Invalid index 0, size is 0
  • Invalid index 0, size is 0
  • Stack trace

    • java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.example.sillimaninquirer.Adapter.getView(NewsFeed.java:402) at android.widget.AbsListView.obtainView(AbsListView.java:2467) at android.widget.ListView.measureHeightOfChildren(ListView.java:1286) at android.widget.ListView.onMeasure(ListView.java:1194) at android.view.View.measure(View.java:17915) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1692) at android.widget.LinearLayout.measureVertical(LinearLayout.java:760) at android.widget.LinearLayout.onMeasure(LinearLayout.java:629) at android.view.View.measure(View.java:17915) at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:846) at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:512) at android.view.View.measure(View.java:17915) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.FrameLayout.onMeasure(FrameLayout.java:465) at android.view.View.measure(View.java:17915) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:447) at android.view.View.measure(View.java:17915) at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5698) at android.widget.FrameLayout.onMeasure(FrameLayout.java:465) at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2728) at android.view.View.measure(View.java:17915) at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2412) at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1414) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1638) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1292) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6598) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800) at android.view.Choreographer.doCallbacks(Choreographer.java:603) at android.view.Choreographer.doFrame(Choreographer.java:572) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:786) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5631) 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:959) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)

    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, 1 month ago
    81 times, 1 month ago
    Once, 4 months ago
    4 times, 5 months ago
    Once, 7 months ago
    241 more bugmates