more null == proxy fixes

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6794 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 15 years ago
parent 2f90f0ad56
commit 4ec0092677

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

@ -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 causes
if (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 entry
assert bentry != null;
assert executor != null;
// assert executor != null; // null == proxy !
this.bentry = bentry;
this.executor = executor;
this.workdate = (workdate == null) ? new Date() : workdate;

Loading…
Cancel
Save