commit c3dcaf9fe03d3d76fefbb53e0aadd314808e2caf
parent 496e289dd9677b1c0b4bec43c814b72754bf09ae
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 8 Oct 2016 19:58:49 -0400
Fix error calling ZoteroPane.getCollectionTreeRow() if collection view
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);