ArrayIndexOutOfBounds Exception while searching JavaHelp application