Skip to content

Commit afaa15e

Browse files
committed
Fix a null reference in https-everywhere.js
1 parent 57ce33c commit afaa15e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/https-everywhere.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ HTTPSEverywhere.prototype = {
269269
getExpando: function(browser, key) {
270270
let obj = this.expandoMap.get(browser);
271271
if (!obj) {
272-
this.log(NOTE, "No expando for " + browser.currentURI.spec);
272+
if (browser.currentURI) {
273+
this.log(NOTE, "No expando for " + browser.currentURI.spec);
274+
}
273275
return null;
274276
}
275277
return obj[key];

0 commit comments

Comments
 (0)