Skip to content

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

*) Bugfix for " java.lang.NullPointerException at hello.respond(hello.java:167)" See: http://www.yacy-forum.de/viewtopic.php?p=9471

thelia2fec3bb1c17
diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java
index 0678674f1..3063db3fb 100644
--- a/htroot/yacy/hello.java
+++ b/htroot/yacy/hello.java
@@ -159,7 +159,7 @@ public class hello {
seeds += "seed0=" + yacyCore.seedDB.mySeed.genSeedStr(key) + serverCore.crlfString;
// attach some more seeds, as requested
- if (yacyCore.seedDB != null) {
+ if ((yacyCore.seedDB != null) && (yacyCore.seedDB.sizeConnected()>0)) {
if (count > yacyCore.seedDB.sizeConnected()) count = yacyCore.seedDB.sizeConnected();
if (count > 100) count = 100;
yacySeed[] ys = yacyCore.seedDB.seedsByAge(true, count); // latest seeds