From d7e85ffe8ff07df469055e4051c23a5a8965899d Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Thu, 25 Jul 2024 05:44:10 -0700 Subject: [PATCH] VisualSelector+BrowserSteps - When scraping elements, check for null results (#2517) --- changedetectionio/content_fetchers/res/xpath_element_scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/content_fetchers/res/xpath_element_scraper.js b/changedetectionio/content_fetchers/res/xpath_element_scraper.js index ac9ab0954..87c0df70f 100644 --- a/changedetectionio/content_fetchers/res/xpath_element_scraper.js +++ b/changedetectionio/content_fetchers/res/xpath_element_scraper.js @@ -214,7 +214,7 @@ if (include_filters.length) { console.log(e); } - if (results.length) { + if (results != null && results.length) { // Iterate over the results results.forEach(node => {