java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.homa/ir.homa.HotelPageAdapter}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

Stack Overflow | Mohammadreza | 10 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

    App crash when the method is called due to Fatal Exception

    Stack Overflow | 10 months ago | Mohammadreza
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ir.homa/ir.homa.HotelPageAdapter}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  2. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  3. 0

    High: Stickerbook crash

    GitHub | 3 years ago | itscam
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Crash Log] Sat, 01 Nov 2014 14:55:53 GMT

    GitHub | 3 years ago | blFeedbackBot
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

  1. Reich 1 times, last 6 days ago
  2. Victor_IT 4 times, last 1 week ago
  3. batwalrus76 11 times, last 1 week ago
  4. Pilleo 6 times, last 2 weeks ago
  5. David 9 times, last 2 weeks ago
76 more registered users
19 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 0, 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. ir.homa
    HotelPageAdapter.onCreate
    1. ir.homa.HotelPageAdapter.prepareHotels(HotelPageAdapter.java:100)
    2. ir.homa.HotelPageAdapter.onCreate(HotelPageAdapter.java:61)
    2 frames
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:6221)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)
    3 frames