From 65532d2c5968ca33ffd4de915a6ceabb1319380a Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 4 Dec 2016 20:19:59 +0300 Subject: [PATCH] [Minor] Avoid `nil` index --- src/plugins/lua/settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index fffa7cfbb..a3a41440a 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -102,7 +102,7 @@ local function check_settings(task) return true end end - if rule['domain'] then + if rule['domain'] and elt['domain'] then if rule['domain']:lower() == elt['domain']:lower() then return true end -- 2.39.5