Fix indexing error with empty documents

This commit is contained in:
Dan Stillman 2014-02-01 16:37:05 -05:00
parent fadd486dc1
commit d966166abc

View File

@ -1524,10 +1524,15 @@ Zotero.Fulltext = new function(){
}
/**
* @param {String} text
* @param {String} [charset]
* @return {Array<String>}
*/
this.semanticSplitter = function (text, charset) {
if (!text){
Zotero.debug('No text to index');
return;
return [];
}
try {