java.lang.ArrayIndexOutOfBoundsException: index=6

GitHub | VickyZare | 8 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.

Root Cause Analysis

  1. java.lang.ArrayIndexOutOfBoundsException

    index=6

    at com.example.dell.MyApplication.GridViewWithHeaderAndFooter$HeaderViewGridAdapter.getView()
  2. com.example.dell
    GridViewWithHeaderAndFooter$HeaderViewGridAdapter.getView
    1. com.example.dell.MyApplication.GridViewWithHeaderAndFooter$HeaderViewGridAdapter.getView(GridViewWithHeaderAndFooter.java:738)
    1 frame
  3. Android Platform
    View.dispatchGenericMotionEvent
    1. android.widget.AbsListView.obtainView(AbsListView.java:2255)
    2. android.widget.GridView.makeAndAddView(GridView.java:1345)
    3. android.widget.GridView.makeRow(GridView.java:345)
    4. android.widget.GridView.fillDown(GridView.java:287)
    5. android.widget.GridView.fillGap(GridView.java:247)
    6. android.widget.AbsListView.trackMotionScroll(AbsListView.java:5143)
    7. android.widget.AbsListView.onGenericMotionEvent(AbsListView.java:3811)
    8. android.view.View.dispatchGenericMotionEventInternal(View.java:7801)
    9. android.view.View.dispatchGenericMotionEvent(View.java:7782)
    10. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    11. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    12. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    13. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    14. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    15. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    16. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    17. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    18. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    19. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    20. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    21. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    22. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    23. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    24. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    25. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    26. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    27. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    28. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    29. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    30. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    31. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    32. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    33. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    34. android.view.ViewGroup.dispatchTransformedGenericPointerEvent(ViewGroup.java:1824)
    35. android.view.ViewGroup.dispatchGenericPointerEvent(ViewGroup.java:1777)
    36. android.view.View.dispatchGenericMotionEvent(View.java:7775)
    36 frames
  4. Android
    PhoneWindow.superDispatchGenericMotionEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchGenericMotionEvent(PhoneWindow.java:2076)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchGenericMotionEvent(PhoneWindow.java:1525)
    2 frames
  5. Android Platform
    Activity.dispatchGenericMotionEvent
    1. android.app.Activity.dispatchGenericMotionEvent(Activity.java:2494)
    1 frame
  6. Android v7
    WindowCallbackWrapper.dispatchGenericMotionEvent
    1. android.support.v7.view.WindowCallbackWrapper.dispatchGenericMotionEvent(WindowCallbackWrapper.java:70)
    1 frame
  7. Android
    PhoneWindow$DecorView.dispatchGenericMotionEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchGenericMotionEvent(PhoneWindow.java:2030)
    1 frame
  8. Android Platform
    ViewRootImpl$AsyncInputStage.apply
    1. android.view.View.dispatchPointerEvent(View.java:7888)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:3947)
    3. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3826)
    4. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3392)
    5. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3442)
    6. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3411)
    7. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3518)
    8. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3419)
    9. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3575)
    9 frames