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

google.com | 9 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

    How to use tab layout with Looping View Pager.

    GitHub | 2 months ago | chutienit
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
  3. 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 10 months ago
  2. bayukresno 3 times, last 10 months ago
  3. Victor_IT 2 times, last 6 days ago
  4. arturgajowy 1 times, last 1 week ago
  5. Pilleo 3 times, last 2 weeks ago
73 more registered users
22 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