Fix indexing error with empty documents
This commit is contained in:
parent
fadd486dc1
commit
d966166abc
1 changed files with 6 additions and 1 deletions
|
@ -1524,10 +1524,15 @@ Zotero.Fulltext = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {String} text
|
||||||
|
* @param {String} [charset]
|
||||||
|
* @return {Array<String>}
|
||||||
|
*/
|
||||||
this.semanticSplitter = function (text, charset) {
|
this.semanticSplitter = function (text, charset) {
|
||||||
if (!text){
|
if (!text){
|
||||||
Zotero.debug('No text to index');
|
Zotero.debug('No text to index');
|
||||||
return;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue