From 985f0f5118c01916c9d1aac93f2198dd0517c9f0 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 5 Jul 2017 21:31:56 +0200 Subject: luci-app-adblock: bugfix * fix nil error on overview page Signed-off-by: Dirk Brenken --- applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-adblock/luasrc/model') diff --git a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua index 6d01e13278..68f9c8897e 100644 --- a/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua +++ b/applications/luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua @@ -7,7 +7,7 @@ local sys = require("luci.sys") local json = require("luci.jsonc") local adbinput = uci.get("adblock", "global", "adb_rtfile") or "/tmp/adb_runtime.json" local dnspath = uci.get("adblock", "global", "adb_dnsdir") or "" -local parse = json.parse(fs.readfile(adbinput)) +local parse = json.parse(fs.readfile(adbinput) or "") if parse ~= nil then version = parse.data.adblock_version domains = parse.data.blocked_domains -- cgit v1.2.3