Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

prevent getting a yacySeed from zero-length-hash-string by chance (for eg.: proxy-crawls got displayed as initiated by some other peer)

sixcooler7bfa6bb4b63b
diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java
index aeb895b1c..5be5dc29b 100644
--- a/source/de/anomic/yacy/yacySeedDB.java
+++ b/source/de/anomic/yacy/yacySeedDB.java
@@ -576,7 +576,7 @@ public final class yacySeedDB implements AlternativeDomainNames {
}
private yacySeed get(final String hash, final MapDataMining database) {
- if (hash == null) return null;
+ if (hash == null || hash.length() == 0) return null;
if ((this.mySeed != null) && (hash.equals(mySeed.hash))) return mySeed;
ConcurrentHashMap<String, String> entry = new ConcurrentHashMap<String, String>();
try {