Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Correcting Problems with lURLEntries containing null URLs.
theli89fab9f200f4
diff --git a/htroot/yacy/transferURL.java b/htroot/yacy/transferURL.javaindex 95565fe42..656a3265d 100644--- a/htroot/yacy/transferURL.java+++ b/htroot/yacy/transferURL.java@@ -94,22 +94,22 @@ public final class transferURL {yacyCore.log.logFine("transferURL: got null URL-string from peer " + otherPeerName);} else {lEntry = sb.urlPool.loadedURL.newEntry(urls, true);- if (- (lEntry != null) &&- (lEntry.url() != null) &&- (blockBlacklist) &&- (plasmaSwitchboard.urlBlacklist.isListed(lEntry.url().getHost().toLowerCase(), lEntry.url().getPath()))- ) {- yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + otherPeerName);- lEntry = null;- }- if ((lEntry != null)&&(lEntry.url() != null)) {- sb.urlPool.loadedURL.addEntry(lEntry, iam, iam, 3);- yacyCore.log.logFine("transferURL: received URL '" + lEntry.url() + "' from peer " + otherPeerName);- received++;+ if ((lEntry != null) && (lEntry.url() != null)) {+ if (+ (blockBlacklist) &&+ (plasmaSwitchboard.urlBlacklist.isListed(lEntry.url().getHost().toLowerCase(), lEntry.url().getPath()))+ ){+ yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + otherPeerName);+ lEntry = null;+ } else {+ sb.urlPool.loadedURL.addEntry(lEntry, iam, iam, 3);+ yacyCore.log.logFine("transferURL: received URL '" + lEntry.url() + "' from peer " + otherPeerName);+ received++;+ }} else {yacyCore.log.logWarning("transferURL: received invalid URL from peer " + otherPeerName +"\n\tURL Property: " + urls);+ // TODO: should we send back an error message???}}}