Fix error and show File Not Found dialog opening attachment with empty path

This commit is contained in:
Dan Stillman 2019-06-11 06:46:46 -04:00
parent ccc4dccffd
commit e69786bd69

View file

@ -4071,6 +4071,10 @@ var ZoteroPane = new function()
let isLinkedFile = !item.isImportedAttachment();
let path = item.getFilePath();
if (!path) {
ZoteroPane_Local.showAttachmentNotFoundDialog(item.id, true, true);
return;
}
let fileExists = await OS.File.exists(path);
// If the file is an evicted iCloud Drive file, launch that to trigger a download.