From d966166abc69d3a007738abf16025bc491b336bb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 1 Feb 2014 16:37:05 -0500 Subject: [PATCH] Fix indexing error with empty documents --- chrome/content/zotero/xpcom/fulltext.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index 56f859536..7be7f087a 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -1524,10 +1524,15 @@ Zotero.Fulltext = new function(){ } + /** + * @param {String} text + * @param {String} [charset] + * @return {Array} + */ this.semanticSplitter = function (text, charset) { if (!text){ Zotero.debug('No text to index'); - return; + return []; } try {