Fix sync error with missing base directory set

Fixes #376
This commit is contained in:
Dan Stillman 2014-12-01 02:32:44 -05:00
parent 43c03c6aca
commit 524a71cfe8

View file

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