From 2296d1f6aca1e18c97de5b0dee3dddd160aaa409 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 16 Feb 2012 07:44:02 -0500 Subject: [PATCH] Don't throw if the user types before the window finishes initializing --- chrome/content/zotero/integration/quickFormat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 1b4308781..5a509109b 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -978,7 +978,7 @@ var Zotero_QuickFormat = new function () { * Handle return or escape */ function _onQuickSearchKeyPress(event) { - qfGuidance.hide(); + if(qfGuidance) qfGuidance.hide(); var keyCode = event.keyCode; if(keyCode === event.DOM_VK_RETURN || keyCode === event.DOM_VK_ENTER) {