* @return The parsed phrases
*/
private static List<Phrase> parseSearchPhrases(String query) {
- List<String> parsedPhrases = null;
+ List<String> parsedPhrases;
try {
parsedPhrases = StringEscaper.parseLine(query);
} catch (TextException te1) {
@Override
public boolean apply(Hit<?> hit) {
- return hit.getScore() > 0;
+ return (hit != null) && (hit.getScore() > 0);
}
};