diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index b76b4eef5..78392d8ac 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -1045,7 +1045,9 @@ Zotero.Sync.Storage = new function () { } catch (e) { Zotero.debug(zipFile.leafName + " is not a valid ZIP file", 2); - zipFile.remove(null); + if (zipFile.exists()) { + zipFile.remove(false); + } return; }