java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1


Solutions on the web

Solution icon of github
length=0; index=-1

Solution icon of stackoverflow
via Stack Overflow by davix10
, 1 year ago
length=0; index=-1

Stack trace

java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
	at com.jjoe64.graphview.GraphViewSeries.appendData(GraphViewSeries.java:111)
	at com.example.tut1.MainActivity$1.handleMessage(MainActivity.java:86)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5141)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.