One user is seeing an occasional error in a function I monkey-patched, I'm having a hard time finding the place where it happens. The stack trace points to
here, but I don't know what code gets executed there. Would appreciate help, I'm stuck on this one.
(1)(+0000004): Error: Unsupported type 'undefined' for source
Zotero.File</this.getContentsAsync<@chrome://zotero/content/xpcom/file.js:292:13
tryCatcher@resource://zotero/loader.jsm -> resource://zotero/bluebird/util.js:16:16
module.exports/PromiseSpawn.prototype._promiseFulfilled@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:97:18
module.exports/Promise.coroutine/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/generators.js:201:9
From previous event:
captureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:915:23
CapturedTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:807:5
longStackTracesCaptureStackTrace@resource://zotero/loader.jsm -> resource://zotero/bluebird/debuggability.js:482:19
module.exports/Promise.method/<@resource://zotero/loader.jsm -> resource://zotero/bluebird/method.js:13:9
Zotero.Translate.Export.prototype.translate@chrome://zotero/content/xpcom/translate/src/translation/translate.js:2585:10
Zotero_Translate_Export_prototype_translate@chrome://zotero-better-bibtex/content/better-bibtex.js:387536:12
trampoline@chrome://zotero-better-bibtex/content/better-bibtex.js:2602:66
_translate@chrome://zotero/content/fileInterface.js:250:7
exportItemsToClipboard@chrome://zotero/content/fileInterface.js:299:7
ZoteroPane</this.copySelectedItemsToClipboard@chrome://zotero/content/zoteroPane.js:2655:9
oncommand@chrome://zotero/content/standalone/standalone.xul:1:1
(3)(+0034004): loading ErrorReport