www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 524a71cfe8578faca5e14574d86cd94cf976673d
parent 43c03c6aca849585ff49eea2e0fdd06088206040
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  1 Dec 2014 02:32:44 -0500

Fix sync error with missing base directory set

Fixes #376

Diffstat:
Mchrome/content/zotero/xpcom/attachments.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js @@ -1046,6 +1046,11 @@ Zotero.Attachments = new function(){ return path; } + if (!baseDir.exists()) { + Zotero.debug("Base directory '" + baseDir.path + "' doesn't exist", 2); + return path; + } + // Get nsIFile for file var attachmentFile = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile);