Это означает, что вы пытаетесь записать в пустой массив.
Из Javadoc ArrayIndexOutOfBoundsException
:
* Thrown to indicate that an array has been accessed with an
* illegal index. The index is either negative or greater than or
* equal to the size of the array.
Итак, 0 -> = размер вашего массива, поэтому ваш массив пуст.