diff --git a/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js b/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js index 83ada41..0f1914a 100644 --- a/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js +++ b/luci-app-wrtbwmon/htdocs/luci-static/resources/view/wrtbwmon/details.js @@ -342,9 +342,11 @@ function resolveHostNameByMACAddr() { ]; for (var i = 0; i < leaseNames.length; i++) { for (var j = 0; j < leaseNames[i].length; j++) { - macaddr = leaseNames[i][j].macaddr.toLowerCase(); - if (!(macaddr in hostNames) || hostNames[macaddr] == '-') { - hostNames[macaddr] = leaseNames[i][j].hostname || '-'; + if (leaseNames[i][j].macaddr) { + macaddr = leaseNames[i][j].macaddr.toLowerCase(); + if (!(macaddr in hostNames) || hostNames[macaddr] == '-') { + hostNames[macaddr] = leaseNames[i][j].hostname || '-'; + } } } }