From 8ba6be1d7241aba8dabdeb1d6ee197a3ce9619ac Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 11 Sep 2005 05:25:13 +0000 Subject: [PATCH] =?UTF-8?q?*)=20Bugfix=20for=20"YaCy=20verz=C3=A4hlt=20sic?= =?UTF-8?q?h=20..."=20Bug.=20=20=20=20See:=20http://www.yacy-forum.de/view?= =?UTF-8?q?topic.php=3Fp=3D9559?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@700 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreateLoaderQueue_p.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htroot/IndexCreateLoaderQueue_p.java b/htroot/IndexCreateLoaderQueue_p.java index 1c9f285c5..843694c0b 100644 --- a/htroot/IndexCreateLoaderQueue_p.java +++ b/htroot/IndexCreateLoaderQueue_p.java @@ -80,21 +80,22 @@ public class IndexCreateLoaderQueue_p { Thread[] threadList = new Thread[threadCount*2]; threadCount = loaderThreads.enumerate(threadList); yacySeed initiator; - int i; + int i, count = 0; for (i = 0; i < threadCount; i++) { plasmaCrawlWorker theWorker = (plasmaCrawlWorker)threadList[i]; plasmaCrawlLoaderMessage theMsg = theWorker.theMsg; if (theMsg == null) continue; initiator = yacyCore.seedDB.getConnected(theMsg.initiator); - prop.put("loader-set_list_"+i+"_dark", ((dark) ? 1 : 0) ); - prop.put("loader-set_list_"+i+"_initiator", ((initiator == null) ? "proxy" : initiator.getName()) ); - prop.put("loader-set_list_"+i+"_depth", theMsg.depth ); - prop.put("loader-set_list_"+i+"_url", theMsg.url ); // null pointer exception here !!! maybe url = null; check reason. + prop.put("loader-set_list_"+count+"_dark", ((dark) ? 1 : 0) ); + prop.put("loader-set_list_"+count+"_initiator", ((initiator == null) ? "proxy" : initiator.getName()) ); + prop.put("loader-set_list_"+count+"_depth", theMsg.depth ); + prop.put("loader-set_list_"+count+"_url", theMsg.url ); // null pointer exception here !!! maybe url = null; check reason. dark = !dark; + count++; } - prop.put("loader-set_list", i ); - prop.put("loader-set_num", i); + prop.put("loader-set_list", count ); + prop.put("loader-set_num", count); } // return rewrite properties