fixed npe

Former-commit-id: b0db873cacc6c2d931b97d33c8b028a7e603220e
This commit is contained in:
Jeremy Long
2013-10-15 20:34:34 -04:00
parent 5ea52b47ab
commit daec4c2e4e

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;