From 05c56d4edb0263227d049a92f0097e76ece657fb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 5 Feb 2016 12:49:25 +0000 Subject: [PATCH] Add safety guard for rule --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/html.lua b/rules/html.lua index cfec9d90b..3ceaed672 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -29,7 +29,7 @@ local function check_html_image(task, min, max) local len = p:get_length() - if len >= min and len < max then + if hc and len >= min and len < max then local images = hc:get_images() if images then for _,i in ipairs(images) do -- 2.39.5