From 6aedc8bff5dbee318146c64fa153cbe4af845ff0 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 16 Feb 2012 16:03:07 -0500 Subject: [PATCH] Prevent inconsequential error --- chrome/content/zotero/xpcom/standalone.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/standalone.js b/chrome/content/zotero/xpcom/standalone.js index c6f654a9e..9e60fd244 100644 --- a/chrome/content/zotero/xpcom/standalone.js +++ b/chrome/content/zotero/xpcom/standalone.js @@ -79,8 +79,12 @@ Zotero.Standalone = new function() { getService(Components.interfaces.nsIObserverService). addObserver({ "observe":function(ch) { - if(ch.QueryInterface(Components.interfaces.nsIRequest).URI.host - !== "versioncheck.addons.mozilla.org") return; + try { + if(ch.QueryInterface(Components.interfaces.nsIRequest).URI.host + !== "versioncheck.addons.mozilla.org") return; + } catch(e) { + return; + } var newListener = new AMOStreamListener; newListener.oldListener = ch. QueryInterface(Components.interfaces.nsITraceableChannel).