Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. PopupFactory$HeavyWeightPopup.hide() has thrown an IndexOutOfBoundsException
    Java Runtime
    1
    0
    0
  2. ArrayList.get() has thrown an IndexOutOfBoundsException
    Java Runtime
    449
    1043
    87

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:638)
    at java.util.ArrayList.get(ArrayList.java:414)
    at java.awt.Container.createHierarchyEvents(Container.java:1439)
    at java.awt.Container.createHierarchyEvents(Container.java:1439)
34 frames hidden

Solution

Nwabunnia11 months ago

Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

External results for this pattern (10)

  1. Index: 0, Size: 0
    Show stack trace
  2. nicomp42via GitHub1 day ago
    Index: 0, Size: 0
    Show stack trace
  3. murali5003via GitHub2 days ago
    Index: 12, Size: 12 (x,y) values are:2 6 (x,y) values are:6 4 (x,y) values are:4 8 (x,y) values are:8 7 (x,y) values are:7 2 (x,y) values are:2 3 (x,y) values are:3 12 (x,y) values are:12 13 (x,y) values are:13 9 (x,y) values are:9 1
    Show stack trace
  4. joserobjrvia GitHub2 days ago
  5. joserobjrvia GitHub2 days ago
    Index: 1747, Size: 1747
    Show stack trace
  6. IdoBarvia GitHub2 days ago
    Index: 2, Size: 1
    Show stack trace
  7. sindhuvaidyvia GitHub2 days ago
    Index: 0, Size: 0
    Show stack trace
  8. angelo337via GitHub3 days ago
    Index: 0, Size: 0
    Show stack trace