From e69786bd69d5d46d7db06974f3d2bad496a24017 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 11 Jun 2019 06:46:46 -0400 Subject: [PATCH] Fix error and show File Not Found dialog opening attachment with empty path --- chrome/content/zotero/zoteroPane.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 007ea85e6b..f56d56919a 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -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.