Skip to content

Commit

Permalink
prevent exception on undefined device
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Feb 6, 2021
1 parent 3d03f58 commit ec48a56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodes/ccu-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,9 @@ module.exports = function (RED) {
paramset = 'LINK';
}

return [iface, d.TYPE, d.FIRMWARE, d.VERSION, cType, paramset].join('/');
if (d) {
return [iface, d.TYPE, d.FIRMWARE, d.VERSION, cType, paramset].join('/');
}
}
}

Expand Down

0 comments on commit ec48a56

Please sign in to comment.