From 985f0f5118c01916c9d1aac93f2198dd0517c9f0 Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Wed, 5 Jul 2017 21:31:56 +0200 Subject: [PATCH] luci-app-adblock: bugfix * fix nil error on overview page Signed-off-by: Dirk Brenken --- .../luci-app-adblock/luasrc/model/cbi/adblock/overview_tab.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6d01e1327..68f9c8897 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 -- 2.25.1