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

GitHub | AndroidDeveloperLB | 3 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

    Crash on swipe to dismiss sample

    GitHub | 3 months ago | AndroidDeveloperLB
    java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1
  2. 0

    Why am I receiving a null object reference?

    Stack Overflow | 3 months ago | Tom James
    java.lang.NullPointerException: Attempt to invoke virtual method 'void mackinnoninc.packmule.DbHelper.updateOrder(long, int)' on a null object reference
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference

    Stack Overflow | 7 months ago | Ozuf
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference
  5. 0

    楼主大神,登录之后直接崩溃

    GitHub | 6 months ago | Dreamer206602
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
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=10; index=-1

    at java.util.ArrayList.get()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.get(ArrayList.java:413)
    1 frame
  3. com.jaychang.srv
    SwipeToDismissItemCallback.getMovementFlags
    1. com.jaychang.srv.SimpleAdapter.getCell(SimpleAdapter.java:262)
    2. com.jaychang.srv.SimpleRecyclerView.getCell(SimpleRecyclerView.java:724)
    3. com.jaychang.srv.behavior.SwipeToDismissItemCallback.getMovementFlags(SwipeToDismissItemCallback.java:37)
    3 frames
  4. android.support.v7
    ItemTouchHelper$2.onInterceptTouchEvent
    1. android.support.v7.widget.helper.ItemTouchHelper$Callback.getAbsoluteMovementFlags(ItemTouchHelper.java:1568)
    2. android.support.v7.widget.helper.ItemTouchHelper.checkSelectForSwipe(ItemTouchHelper.java:960)
    3. android.support.v7.widget.helper.ItemTouchHelper$2.onInterceptTouchEvent(ItemTouchHelper.java:340)
    3 frames
  5. Android v7
    RecyclerView.onTouchEvent
    1. android.support.v7.widget.RecyclerView.dispatchOnItemTouch(RecyclerView.java:2602)
    2. android.support.v7.widget.RecyclerView.onTouchEvent(RecyclerView.java:2730)
    2 frames
  6. Android Platform
    ViewGroup.dispatchTouchEvent
    1. android.view.View.dispatchTouchEvent(View.java:10023)
    2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2626)
    3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2307)
    4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2632)
    15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2321)
    15 frames
  7. Android
    PhoneWindow.superDispatchTouchEvent
    1. com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:413)
    2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1808)
    2 frames
  8. Android Platform
    Activity.dispatchTouchEvent
    1. android.app.Activity.dispatchTouchEvent(Activity.java:3070)
    1 frame
  9. Android v7
    WindowCallbackWrapper.dispatchTouchEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:71)
    1 frame
  10. Android
    DecorView.dispatchTouchEvent
    1. com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:375)
    1 frame
  11. Android Platform
    ActivityThread.main
    1. android.view.View.dispatchPointerEvent(View.java:10243)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4438)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4306)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3999)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4056)
    10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
    11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3906)
    12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3872)
    13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3880)
    14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3853)
    15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6246)
    16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6220)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6181)
    18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6349)
    19. android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
    20. android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
    21. android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:176)
    22. android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6320)
    23. android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6372)
    24. android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
    25. android.view.Choreographer.doCallbacks(Choreographer.java:686)
    26. android.view.Choreographer.doFrame(Choreographer.java:615)
    27. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
    28. android.os.Handler.handleCallback(Handler.java:751)
    29. android.os.Handler.dispatchMessage(Handler.java:95)
    30. android.os.Looper.loop(Looper.java:154)
    31. android.app.ActivityThread.main(ActivityThread.java:6169)
    31 frames
  12. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  13. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
    2 frames