From: Florian Eckert Date: Tue, 27 Feb 2018 14:00:50 +0000 (+0100) Subject: luci-app-mwan3: fix stack trace if no tacking_ip is set on interface add X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c86c6562ed870bb476349857ca59e4bb14947e2;p=oweals%2Fluci.git luci-app-mwan3: fix stack trace if no tacking_ip is set on interface add Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua index 920dc6afb..4b1a070d1 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interface.lua @@ -93,7 +93,7 @@ function configCheck() local trackingNumber = uci:get("mwan3", iface, "track_ip") overview[iface]["tracking"] = 0 - if #trackingNumber > 0 then + if trackingNumber and #trackingNumber > 0 then overview[iface]["tracking"] = #trackingNumber overview[iface]["reliability"] = false local reliabilityNumber = tonumber(uci:get("mwan3", iface, "reliability"))