diff --git a/changedetectionio/content_fetchers/res/xpath_element_scraper.js b/changedetectionio/content_fetchers/res/xpath_element_scraper.js index ac9ab095..87c0df70 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 => {