Resolved IndexOutOfBounds (RM error)

Discussion in 'Client & Site Support' started by Hazard, Jun 16, 2015.

  1. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
  2. Best Answer:
    Post #8 by Hazard, Jun 17, 2015
  3. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,332
    Likes Received:
    758
    You're passing in an index that's out of the bounds of the list... that's on you...
     
  4. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
    The QueryResults thing is what's calling it and that's RM..
     
  5. Aidden

    Aidden The better executive ;)

    Joined:
    Dec 3, 2013
    Messages:
    3,295
    Likes Received:
    665
    Share the line of code that causes this? It's most likely you entering an invalid index, as cloud said.
     
  6. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,332
    Likes Received:
    758
    Only because you're calling get which is a list function...
     
    dog_ likes this.
  7. dog_

    dog_ 0xCAFEBABE

    Joined:
    Nov 3, 2013
    Messages:
    271
    Likes Received:
    55
    List#get Throws:
    IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    from your pic... 6 >= 0
     
  8. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,332
    Likes Received:
    758
    I mean I could make it return but... that's not normal :/
     
  9. Hazard

    Joined:
    Apr 18, 2015
    Messages:
    394
    Likes Received:
    84
    Apparently I did something total random in those lines, idk what I've drunk back then..
     

Share This Page

Loading...