diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 023106c6d0..a4e1c56af5 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3507,6 +3507,9 @@ var ZoteroPane = new function() throw new Error('collection must be null if createNew is true'); } let id = await this.newCollection(); + if (!id) { + return; + } collection = Zotero.Collections.get(id); }