From 4161341d2d575f435cd333cd78e8e049816ef178 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 30 Dec 2011 12:44:19 -0500 Subject: [PATCH] Fix error switching options in download dialog before Z pane was opened --- chrome/content/zotero/zoteroPane.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 0165c3ae70..6ab5917029 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1092,6 +1092,9 @@ var ZoteroPane = new function() this.getItemGroup = function () { + if (!this.collectionsView.selection) { + return false; + } return this.collectionsView._getItemAtRow(this.collectionsView.selection.currentIndex); }