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

google.com | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    GitHub comment 212#164154157

    GitHub | 1 year ago | franzejr
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0

  1. Stefan Braune 7 times, last 8 months ago
  2. bayukresno 3 times, last 8 months ago
  3. filpgame 1 times, last 1 week ago
  4. poroszd 2 times, last 2 weeks ago
  5. Donsy 4 times, last 2 weeks ago
66 more registered users
29 unregistered visitors
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 1

    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:1862)
    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:2991)
    7. android.support.v4.view.PagerAdapter.notifyDataSetChanged(PagerAdapter.java:279)
    7 frames