commit d966166abc69d3a007738abf16025bc491b336bb parent fadd486dc1b5b1d6c47d00542e6ba919e073dc10 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 1 Feb 2014 16:37:05 -0500 Fix indexing error with empty documents Diffstat:
| M | 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 @@ -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 {