Skip to content

Commit 5a13a7b

Browse files
committed
Graceful handling of unfindable ApplicableList objects
https://trac.torproject.org/projects/tor/ticket/6280
1 parent 391fdd5 commit 5a13a7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/https-everywhere.js

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

0 commit comments

Comments
 (0)