Fix indexing error with empty documents
This commit is contained in:
parent
fadd486dc1
commit
d966166abc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user