IndexOutOfBoundsException

Hello. I would like to know why I got a IndexOutOfBoundsException on a text function. This is the first time this happened. Does anyone know in what circumstances this happens, and how I can fix it?Screen Shot 2016-03-18 at 1.44.50 PM

Tagged:

Answers

  • In line 32 you print the values just before the problem but we can't see them. What are the values that causes the error message?

  • @ quark, the values were "500.0 400.0 100.0 50.0".Screen Shot 2016-03-19 at 1.17.00 PM

  • I have glanced at the source code for the text method and I can't see where it might through this exception, I hoped the numbers would give a clue.

    If you are using PS3 then when the error occurs look in the errors tab in the bottom pane and copy the full error message here.

    A couple of other points please do not post screenshots of code. I have a 27" monitor and even when zooming in on the image it is still difficult to read the text. Image people trying to read it on there mobile phone or tablet, not a chance in hell of them reading it and if they can't read it they can't help.

    When using the @ symbol to inform a forum member that they have been mentioned do not leave a space between the symbol and the name.

Sign In or Register to comment.