Debugging and ArrayOutOfBoundsException