java.lang.ArrayIndexOutOfBoundsException: length=4; index=4

GitHub | galadril | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    length=4; index=4

    at com.heinrichreimersoftware.materialintro.view.InkPageIndicator.setCurrentPageImmediate()
  2. com.heinrichreimersoftware.materialintro
    InkPageIndicator.onMeasure
    1. com.heinrichreimersoftware.materialintro.view.InkPageIndicator.setCurrentPageImmediate(InkPageIndicator.java:232)
    2. com.heinrichreimersoftware.materialintro.view.InkPageIndicator.calculateDotPositions(InkPageIndicator.java:222)
    3. com.heinrichreimersoftware.materialintro.view.InkPageIndicator.onMeasure(InkPageIndicator.java:277)
    3 frames
  3. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19730)
    2. android.widget.LinearLayout.measureHorizontal(LinearLayout.java:1098)
    3. android.widget.LinearLayout.onMeasure(LinearLayout.java:642)
    4. android.view.View.measure(View.java:19730)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    6. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    7. android.view.View.measure(View.java:19730)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    9. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    9 frames
  4. Android v7
    ContentFrameLayout.onMeasure
    1. android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
    1 frame
  5. Android Platform
    ViewGroup.measureChildWithMargins
    1. android.view.View.measure(View.java:19730)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    2 frames
  6. Android v7
    ActionBarOverlayLayout.onMeasure
    1. android.support.v7.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:391)
    1 frame
  7. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:19730)
    2. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    3. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    4. android.view.View.measure(View.java:19730)
    5. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    6. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
    7. android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
    8. android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
    9. android.view.View.measure(View.java:19730)
    10. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6120)
    11. android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
    11 frames
  8. Android
    DecorView.onMeasure
    1. com.android.internal.policy.DecorView.onMeasure(DecorView.java:687)
    1 frame
  9. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:19730)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2271)
    3. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2024)
    4. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
    5. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
    6. android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
    7. android.view.Choreographer.doCallbacks(Choreographer.java:683)
    8. android.view.Choreographer.doFrame(Choreographer.java:619)
    9. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
    10. android.os.Handler.handleCallback(Handler.java:751)
    11. android.os.Handler.dispatchMessage(Handler.java:95)
    12. android.os.Looper.loop(Looper.java:154)
    13. android.app.ActivityThread.main(ActivityThread.java:6132)
    13 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    2 frames