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

GitHub | alexlittle | 4 years 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
    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.
  2. 0

    IndexOutOfBoundsException

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

    Automated exception search integrated into your IDE

  4. 0

    High: Getting an odd crash

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

    Crash when tapping the dropdown action bar when tag list is still empty

    GitHub | 3 years ago | maxme
    java.lang.IndexOutOfBoundsException: Invalid index 0, 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 0, size is 0

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
    2. java.util.ArrayList.get(ArrayList.java:304)
    2 frames
  3. org.digitalcampus.mquiz
    MQuiz.getCurrentQuestion
    1. org.digitalcampus.mquiz.MQuiz.getCurrentQuestion(MQuiz.java:264)
    1 frame
  4. org.digitalcampus.mobile
    ModuleActivity.onStart
    1. org.digitalcampus.mobile.learning.widgets.MQuizWidget.showQuestion(MQuizWidget.java:121)
    2. org.digitalcampus.mobile.learning.widgets.MQuizWidget.startQuiz(MQuizWidget.java:117)
    3. org.digitalcampus.mobile.learning.widgets.MQuizWidget.<init>(MQuizWidget.java:88)
    4. org.digitalcampus.mobile.learning.activity.ModuleActivity.loadActivity(ModuleActivity.java:264)
    5. org.digitalcampus.mobile.learning.activity.ModuleActivity.onStart(ModuleActivity.java:145)
    5 frames
  5. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1178)
    2. android.app.Activity.performStart(Activity.java:5216)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2083)
    3 frames