java.lang.IndexOutOfBoundsException: Invalid


Samebug tips

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.


7 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by soroosh
, 8 months ago
Invalid

Solution icon of web
Invalid index , size is

Solution icon of stackoverflow
Invalid index size is 5

Solution icon of bugzilla
Invalid index 0, size is 0

Solution icon of github
via GitHub by Shern
, 1 year ago
Invalid index 0, size is 0

Solution icon of github
via GitHub by XinYiWorld
, 4 months ago
Invalid index 1, size is 1

Solution icon of github
via GitHub by tsunamilx
, 1 year ago
Invalid index 1, size is 0

Solution icon of github
via GitHub by cletus42o
, 1 year ago
Invalid index 2, size is 2

Solution icon of github
via GitHub by Bai-Jie
, 1 year ago
Invalid index 1, size is 1

Solution icon of github
Invalid index 45, size is 34

Stack trace

java.lang.IndexOutOfBoundsException: Invalid
	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
	at java.util.ArrayList.get(ArrayList.java:308)
	at org.achartengine.chart.LineChart.drawSeries(ProGuard:168)
	at org.achartengine.chart.XYChart.drawSeries(ProGuard:518)
	at org.achartengine.chart.XYChart.draw(ProGuard:311)
	at org.achartengine.GraphicalView.onDraw(ProGuard:168)
	at android.view.View.draw(View.java:15114)
	at android.view.View.updateDisplayListIfDirty(View.java:14048)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3388)
	at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3367)
	at android.view.View.updateDisplayListIfDirty(View.java:14008)
	at android.view.View.getDisplayList(View.java:14071)
	at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:266)
	at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:272)
	at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:311)
	at android.view.ViewRootImpl.draw(ViewRootImpl.java:2492)
	at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2337)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1968)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1054)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5779)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
	at android.view.Choreographer.doFrame(Choreographer.java:550)

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

4 times, 1 week ago
Once, 1 month ago
3 times, 4 months ago
81 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
256 more bugmates