Intenta atrapar a Bounds Exception Java

try {
    // Your Code        
} catch (IndexOutOfBoundsException exception) {
    exception.printStackTrace();     
}
Cloudy Civet