diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index f3d6397ae..c7d3fcbb8 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1334,7 +1334,7 @@ var ZoteroPane = new function() this.getCollectionTreeRow = function () { - if (!this.collectionsView.selection.count) { + if (!this.collectionsView || !this.collectionsView.selection.count) { return false; } return this.collectionsView.getRow(this.collectionsView.selection.currentIndex);