fix for null-seed in seedfile

http://forum.yacy-websuche.de/viewtopic.php?f=5&t=1653

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5401 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 16 years ago
parent d376d81fc4
commit 449e697436

@ -134,6 +134,7 @@ public final class yacySeedDB implements httpdAlternativeDomainNames {
if (myOwnSeedFile.length() > 0) try { if (myOwnSeedFile.length() > 0) try {
// load existing identity // load existing identity
mySeed = yacySeed.load(myOwnSeedFile); mySeed = yacySeed.load(myOwnSeedFile);
if(mySeed == null) throw new IOException("current seed is null");
} catch (final IOException e) { } catch (final IOException e) {
// create new identity // create new identity
serverLog.logSevere("SEEDDB", "could not load stored mySeed.txt from " + myOwnSeedFile.toString() + ": " + e.getMessage() + ". creating new seed.", e); serverLog.logSevere("SEEDDB", "could not load stored mySeed.txt from " + myOwnSeedFile.toString() + ": " + e.getMessage() + ". creating new seed.", e);

Loading…
Cancel
Save