From d958d1c0c436ac716648e11864c8934f5d3b2617 Mon Sep 17 00:00:00 2001 From: zutto Date: Sat, 29 Jun 2024 09:33:06 +0300 Subject: [PATCH] ensure that returned SolrDocument is not null --- source/net/yacy/crawler/data/CrawlQueues.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/yacy/crawler/data/CrawlQueues.java b/source/net/yacy/crawler/data/CrawlQueues.java index ea9c3b167..30a5ea93a 100644 --- a/source/net/yacy/crawler/data/CrawlQueues.java +++ b/source/net/yacy/crawler/data/CrawlQueues.java @@ -608,6 +608,9 @@ public class CrawlQueues { int i = 0; int deepRatio = Integer.parseInt(this.sb.getConfig(SwitchboardConstants.AUTOCRAWL_RATIO, "50")); for (SolrDocument doc: resp.getResults()) { + if (doc == null) { + continue; + } boolean deep = false; i++; if( i % deepRatio == 0 ){