[SOLVED] ArrayIndexOutOfBoundsException: 1

This sounds the most likely. As @shawnlau suggests, I would test if length > 1before reading from the list.

2 Likes