Fix error calling ZoteroPane.getCollectionTreeRow() if collection view

This commit is contained in:
Dan Stillman 2016-10-08 19:58:49 -04:00
parent 496e289dd9
commit c3dcaf9fe0

View file

@ -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);