Catch ArrayIndexOutOfBoundsException