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

GitHub | antohama | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    GitHub | 3 years ago | davidgraeff
    java.lang.RuntimeException: Unable to pause activity {oly.netpowerctrl/oly.netpowerctrl.main.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
  2. 0

    Crash when removing WelcomeCard

    GitHub | 2 years ago | theblixguy
    java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    ArrayIndexOutOfBoundsException in SwipeDismissListener

    GitHub | 2 years ago | eeandrew
    java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
  5. 0

    swiping empty recycler causes crash

    GitHub | 2 years ago | ericcumbee
    java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    length=12; index=-1

    at java.util.ArrayList.get()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.get(ArrayList.java:310)
    1 frame
  3. com.example.asuprun
    AnotherActivity$1.getFormattedValue
    1. com.example.asuprun.tempconverter.AnotherActivity$1.getFormattedValue(AnotherActivity.java:65)
    1 frame
  4. com.github.mikephil
    Chart.setData
    1. com.github.mikephil.charting.components.AxisBase.getFormattedLabel(AxisBase.java:451)
    2. com.github.mikephil.charting.components.AxisBase.getLongestLabel(AxisBase.java:437)
    3. com.github.mikephil.charting.renderer.XAxisRenderer.computeSize(XAxisRenderer.java:78)
    4. com.github.mikephil.charting.renderer.XAxisRenderer.computeAxisValues(XAxisRenderer.java:73)
    5. com.github.mikephil.charting.renderer.XAxisRenderer.computeAxis(XAxisRenderer.java:66)
    6. com.github.mikephil.charting.charts.BarLineChartBase.notifyDataSetChanged(BarLineChartBase.java:339)
    7. com.github.mikephil.charting.charts.Chart.setData(Chart.java:318)
    7 frames
  5. com.example.asuprun
    AnotherActivity.toggleData
    1. com.example.asuprun.tempconverter.AnotherActivity.plotData(AnotherActivity.java:88)
    2. com.example.asuprun.tempconverter.AnotherActivity.toggleData(AnotherActivity.java:98)
    2 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  7. Android v7
    AppCompatViewInflater$DeclaredOnClickListener.onClick
    1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:270)
    1 frame
  8. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4780)
    2. android.view.View$PerformClick.run(View.java:19866)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5254)
    6 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames