From ebe08836e80cde46b661199450eb8e482a1d4cbc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 3 Jul 2015 23:52:30 -0400 Subject: [PATCH] A little more Quick Copy safety --- chrome/content/zotero/xpcom/quickCopy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 9a7f8bc92..2cc6d0cd3 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -115,7 +115,7 @@ Zotero.QuickCopy = new function() { catch (e) {} // Skip non-HTTP URLs - if (!/^https?$/.test(nsIURI.scheme)) { + if (!nsIURI || !/^https?$/.test(nsIURI.scheme)) { return quickCopyPref; }