Don't fail if processDocuments() processor returns undefined

Follow up to 157b8deda9
This commit is contained in:
Dan Stillman 2016-05-26 00:33:19 -04:00
parent 2f47eae3ff
commit e4bc4c028d

View File

@ -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) {