fixed npe

Former-commit-id: 235ae4ebeea96e9b261ef5d578324b2d60e927bc
This commit is contained in:
Jeremy Long
2013-10-15 20:34:34 -04:00
parent 8366ec5831
commit 138ce1c69a

View File

@@ -444,6 +444,9 @@ public class CPEAnalyzer implements Analyzer {
//</editor-fold>
//TODO - likely need to change the split... not sure if this will work for CPE with special chars
if (text == null) {
return false;
}
final String[] words = text.split("[\\s_-]");
final List<String> list = new ArrayList<String>();
String tempWord = null;