[SOLVED] ArrayIndexOutOfBoundsException: 1

this seems to have solved the issue and it was a simple fix. Thanks!