Commit 9714d5a8 authored by Arthur Edelstein's avatar Arthur Edelstein
Browse files

Bug #15207: Check first if bridge.ID exists before using it

parent 31b174a2
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment