Skip to content

Commit

Permalink
Check first if bridge.ID exists before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
arthuredelstein committed Mar 10, 2015
1 parent 31b174a commit 5daeed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/content/tor-circuit-display.js
Expand Up @@ -55,7 +55,7 @@ let trimQuotes = s => s ? s.match(/^\"(.*)\"$/)[1] : undefined;
let getBridge = function* (controller, id) {
let bridges = yield controller.getConf("bridge");
for (let bridge of bridges) {
if (bridge.ID.toUpperCase() === id.toUpperCase()) {
if (bridge.ID && bridge.ID.toUpperCase() === id.toUpperCase()) {
return bridge;
}
}
Expand Down

0 comments on commit 5daeed2

Please sign in to comment.