check the document protocol & host values before proceeding to form final url.

This commit is contained in:
zutto 2024-06-29 10:11:58 +03:00
parent 962aaec0c0
commit 5268ae2ce9

View File

@ -617,6 +617,10 @@ public class CrawlQueues {
deep = true;
}
DigestURL url;
if (doc.getFieldValue("url_protocol_s") == null || doc.getFieldValue("host_s") == null) {
//Skip this document if either of these values is null.
continue;
}
final String u = doc.getFieldValue("url_protocol_s").toString() + "://" + doc.getFieldValue("host_s").toString();
try {
url = new DigestURL(u);