ensure that returned SolrDocument is not null

pull/650/head
zutto 5 months ago
parent 66cf7d4ca5
commit d958d1c0c4

@ -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 ){

Loading…
Cancel
Save