From 3dd3431c58527878a4fa1ec74de31f360b6125ae Mon Sep 17 00:00:00 2001 From: mkossin Date: Tue, 31 May 2005 13:58:30 +0000 Subject: [PATCH] Fixes a Problem with mySeed.txt. If this file is accessible but has no content it will be recreated: http://www.yacy-forum.de/viewtopic.php?p=3657#3657 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@202 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacySeedDB.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index f50b2a082..2488fe54b 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -109,7 +109,7 @@ public class yacySeedDB { // create or init own seed myOwnSeedFile = new File(sb.getRootPath(), sb.getConfig("yacyOwnSeedFile", "mySeed.txt")); - if (myOwnSeedFile.exists()) { + if (myOwnSeedFile.exists() && (myOwnSeedFile.length() > 0)) { // load existing identity mySeed = yacySeed.load(myOwnSeedFile); } else {