Skip to content

Commit f82adcb

Browse files
committed
Graceful handling of unfindable ApplicableList objects
https://trac.torproject.org/projects/tor/ticket/6280
1 parent 94bfd00 commit f82adcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/https-everywhere.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ HTTPSEverywhere.prototype = {
431431
var lst = this.getApplicableListForChannel(channel);
432432
if (channel.URI.spec in https_everywhere_blacklist) {
433433
this.log(DBUG, "Avoiding blacklisted " + channel.URI.spec);
434-
lst.breaking_rule(https_everywhere_blacklist[channel.URI.spec]);
434+
if (lst) lst.breaking_rule(https_everywhere_blacklist[channel.URI.spec]);
435435
return;
436436
}
437437
HTTPS.replaceChannel(lst, channel);

0 commit comments

Comments
 (0)