java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0

Stack Overflow | Wai Yan Hein | 3 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    GitHub comment 212#164154157

    GitHub | 12 months ago | franzejr
    java.lang.IndexOutOfBoundsException: Invalid index 1, 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.IndexOutOfBoundsException

    Invalid index 1, size is 0

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. android.support.design
    TabLayout$TabLayoutOnPageChangeListener.onPageSelected
    1. android.support.design.widget.TabLayout.getTabAt(TabLayout.java:518)
    2. android.support.design.widget.TabLayout$TabLayoutOnPageChangeListener.onPageSelected(TabLayout.java:1986)
    2 frames
  4. Android Support v4
    PagerAdapter.notifyDataSetChanged
    1. android.support.v4.view.ViewPager.dispatchOnPageSelected(ViewPager.java:1867)
    2. android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:629)
    3. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:609)
    4. android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:570)
    5. android.support.v4.view.ViewPager.dataSetChanged(ViewPager.java:1019)
    6. android.support.v4.view.ViewPager$PagerObserver.onChanged(ViewPager.java:2996)
    7. android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:279)
    7 frames
  5. tonightfootballreport.com.tfr
    MainActivity$1.onTabSelected
    1. tonightfootballreport.com.tfr.MainActivity$1.onTabSelected(MainActivity.java:211)
    1 frame
  6. com.roughike.bottombar
    BottomBar.onClick
    1. com.roughike.bottombar.BottomBar.updateSelectedTab(BottomBar.java:717)
    2. com.roughike.bottombar.BottomBar.handleClick(BottomBar.java:685)
    3. com.roughike.bottombar.BottomBar.onClick(BottomBar.java:656)
    3 frames
  7. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4240)
    2. android.view.View$PerformClick.run(View.java:17721)
    3. android.os.Handler.handleCallback(Handler.java:730)
    4. android.os.Handler.dispatchMessage(Handler.java:92)
    5. android.os.Looper.loop(Looper.java:137)
    6. android.app.ActivityThread.main(ActivityThread.java:5103)
    6 frames
  8. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  9. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  10. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame