length=12; index=-1

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5681

  • length=12; index=-1
  • length=12; index=-1
  • length=12; index=-1
  • Stack trace

    • java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at java.util.ArrayList.get( at com.example.asuprun.tempconverter.AnotherActivity$1.getFormattedValue( at com.github.mikephil.charting.components.AxisBase.getFormattedLabel( at com.github.mikephil.charting.components.AxisBase.getLongestLabel( at com.github.mikephil.charting.renderer.XAxisRenderer.computeSize( at com.github.mikephil.charting.renderer.XAxisRenderer.computeAxisValues( at com.github.mikephil.charting.renderer.XAxisRenderer.computeAxis( at com.github.mikephil.charting.charts.BarLineChartBase.notifyDataSetChanged( at com.github.mikephil.charting.charts.Chart.setData( at com.example.asuprun.tempconverter.AnotherActivity.plotData( at com.example.asuprun.tempconverter.AnotherActivity.toggleData( at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke( at$DeclaredOnClickListener.onClick( at android.view.View.performClick( at android.view.View$ 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, 4 days ago
    6 times, 4 months ago
    2 times, 5 months ago
    2 times, 7 months ago
    40 times, 9 months ago
    39 more bugmates