Skip to content

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

fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=192&p=1129#p1129

orbiterbeb2e062a7fc
diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java
index c2d907dfb..6fd73ecb2 100644
--- a/source/de/anomic/yacy/yacySeedDB.java
+++ b/source/de/anomic/yacy/yacySeedDB.java
@@ -344,7 +344,7 @@ public final class yacySeedDB {
while ((c < count) && (it.hasNext())) {
c++;
ys = getConnected((String) it.next());
- result.put(ys.hash, ys);
+ if ((ys != null) && (ys.hash != null)) result.put(ys.hash, ys);
}
return result;
} catch (kelondroException e) {