java.lang.IndexOutOfBoundsException: index=14 count=13

GitHub | messense | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Crash in react-native android app

    Stack Overflow | 2 months ago | Varun Gupta
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference
  2. 0

    GitHub comment 3042#271521959

    GitHub | 3 months ago | messense
    java.lang.IndexOutOfBoundsException: index=14 count=13
  3. 0

    长时间阅读,突然返回上一页会 crash

    GitHub | 3 weeks ago | martinx
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.unFocus(android.view.View)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 7959#247548800

    GitHub | 7 months ago | robclouth
    java.lang.IndexOutOfBoundsException: index=23 count=22
  6. 0
    samebug tip
    This happens when you have android:animateLayoutChanges set to true in your XML file and you call notifyDataSetChanged(). To fix it, you have to set android:animateLayoutChanges to false.

    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.IndexOutOfBoundsException

      index=14 count=13

      at android.view.ViewGroup.addInArray()
    2. Android Platform
      ViewGroup.addViewInLayout
      1. android.view.ViewGroup.addInArray(ViewGroup.java:4559)
      2. android.view.ViewGroup.addViewInner(ViewGroup.java:4476)
      3. android.view.ViewGroup.addViewInLayout(ViewGroup.java:4430)
      3 frames
    3. com.facebook.react
      ReactScrollView.onScrollChanged
      1. com.facebook.react.views.view.ReactViewGroup.updateSubviewClipStatus(ReactViewGroup.java:312)
      2. com.facebook.react.views.view.ReactViewGroup.updateClippingToRect(ReactViewGroup.java:285)
      3. com.facebook.react.views.view.ReactViewGroup.updateClippingRect(ReactViewGroup.java:278)
      4. com.facebook.react.views.scroll.ReactScrollView.updateClippingRect(ReactScrollView.java:220)
      5. com.facebook.react.views.scroll.ReactScrollView.onScrollChanged(ReactScrollView.java:152)
      5 frames
    4. Android Platform
      ScrollView.onOverScrolled
      1. android.view.View.scrollTo(View.java:13272)
      2. android.widget.ScrollView.onOverScrolled(ScrollView.java:822)
      2 frames
    5. com.facebook.react
      ReactScrollView.onOverScrolled
      1. com.facebook.react.views.scroll.ReactScrollView.onOverScrolled(ReactScrollView.java:342)
      1 frame
    6. Android Platform
      ScrollView.onTouchEvent
      1. android.view.View.overScrollBy(View.java:20915)
      2. android.widget.ScrollView.onTouchEvent(ScrollView.java:682)
      2 frames
    7. com.facebook.react
      ReactScrollView.onTouchEvent
      1. com.facebook.react.views.scroll.ReactScrollView.onTouchEvent(ReactScrollView.java:192)
      1 frame
    8. Android Platform
      ViewGroup.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:9939)
      2. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2663)
      3. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2344)
      4. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      5. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      6. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      7. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      8. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      9. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      10. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      11. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      12. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      13. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      14. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      15. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      16. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      17. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      18. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      19. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      20. android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2669)
      21. android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2358)
      21 frames
    9. Android
      PhoneWindow.superDispatchTouchEvent
      1. com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:411)
      2. com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1810)
      2 frames
    10. Android Platform
      Activity.dispatchTouchEvent
      1. android.app.Activity.dispatchTouchEvent(Activity.java:3061)
      1 frame
    11. Android v7
      WindowCallbackWrapper.dispatchTouchEvent
      1. android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:67)
      1 frame
    12. Android
      DecorView.dispatchTouchEvent
      1. com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:373)
      1 frame
    13. Android Platform
      ActivityThread.main
      1. android.view.View.dispatchPointerEvent(View.java:10159)
      2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4434)
      3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4302)
      4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)
      5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3902)
      6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3868)
      7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3995)
      8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3876)
      9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4052)
      10. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)
      11. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3902)
      12. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3868)
      13. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3876)
      14. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3849)
      15. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6210)
      16. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6184)
      17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6145)
      18. android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6313)
      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:6284)
      23. android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6336)
      24. android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
      25. android.view.Choreographer.doCallbacks(Choreographer.java:683)
      26. android.view.Choreographer.doFrame(Choreographer.java:613)
      27. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
      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:6077)
      31 frames
    14. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    15. 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