From e4bc4c028dd44ab9b45f7bbe2f9757fa76ca2466 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 26 May 2016 00:33:19 -0400 Subject: [PATCH] Don't fail if processDocuments() processor returns undefined Follow up to 157b8deda9 --- chrome/content/zotero/xpcom/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/http.js b/chrome/content/zotero/xpcom/http.js index f8de939c1..48147429b 100644 --- a/chrome/content/zotero/xpcom/http.js +++ b/chrome/content/zotero/xpcom/http.js @@ -864,7 +864,7 @@ Zotero.HTTP = new function() { } // If processor returns a promise, wait for it - if (maybePromise.then) { + if (maybePromise && maybePromise.then) { maybePromise.then(() => doLoad()) .catch(e => { if (exception) {