*) Bugfix for " java.lang.NullPointerException at hello.respond(hello.java:167)"

See: http://www.yacy-forum.de/viewtopic.php?p=9471

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@685 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 7809b382bf
commit a2fec3bb1c

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

Loading…
Cancel
Save