Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
more null == proxy fixes
hermens4ec0092677e5
diff --git a/htroot/IndexCreateParserErrors_p.java b/htroot/IndexCreateParserErrors_p.javaindex f535710fd..79704592a 100644--- a/htroot/IndexCreateParserErrors_p.java+++ b/htroot/IndexCreateParserErrors_p.java@@ -83,8 +83,8 @@ public class IndexCreateParserErrors_p {initiatorHash = entry.initiator();executorHash = entry.executor();- initiatorSeed = sb.peers.getConnected(new String(initiatorHash));- executorSeed = sb.peers.getConnected(new String(executorHash));+ initiatorSeed = (initiatorHash == null) ? null : sb.peers.getConnected(new String(initiatorHash));+ executorSeed = (executorHash == null) ? null : sb.peers.getConnected(new String(executorHash));prop.putHTML("rejected_list_"+j+"_initiator", ((initiatorSeed == null) ? "proxy" : initiatorSeed.getName()));prop.putHTML("rejected_list_"+j+"_executor", ((executorSeed == null) ? "proxy" : executorSeed.getName()));prop.putHTML("rejected_list_"+j+"_url", url.toNormalform(false, true));diff --git a/source/de/anomic/crawler/ZURL.java b/source/de/anomic/crawler/ZURL.javaindex 28237abc0..72875f4e6 100755--- a/source/de/anomic/crawler/ZURL.java+++ b/source/de/anomic/crawler/ZURL.java@@ -126,7 +126,7 @@ public class ZURL implements Iterable<ZURL.Entry> {final Date workdate,final int workcount,String anycause) {- assert executor != null;+ // assert executor != null; // null == proxy !if (exists(bentry.url().hash())) return; // don't insert double causesif (anycause == null) anycause = "unknown";Entry entry = new Entry(bentry, executor, workdate, workcount, anycause);@@ -232,7 +232,7 @@ public class ZURL implements Iterable<ZURL.Entry> {final String anycause) {// create new entryassert bentry != null;- assert executor != null;+ // assert executor != null; // null == proxy !this.bentry = bentry;this.executor = executor;this.workdate = (workdate == null) ? new Date() : workdate;