Skip to content

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

fix for NPE in DHT transfer selection, see http://forum.yacy-websuche.de/viewtopic.php?f=6&t=327

orbiter841cf710227e
diff --git a/source/de/anomic/plasma/plasmaDHTChunk.java b/source/de/anomic/plasma/plasmaDHTChunk.java
index dae37ac8e..e2c1ba59a 100644
--- a/source/de/anomic/plasma/plasmaDHTChunk.java
+++ b/source/de/anomic/plasma/plasmaDHTChunk.java
@@ -8,7 +8,7 @@
//
// $LastChangedDate$
// $LastChangedRevision$
-// $LastChangedBy$
+// $LastChangedBy: $
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -248,7 +248,7 @@ public class plasmaDHTChunk {
continue;
}
lurl = wordIndex.loadedURL.load(iEntry.urlHash(), iEntry);
- if ((lurl == null) || (lurl.comp().url() == null)) {
+ if ((lurl == null) || (lurl.comp() == null) || (lurl.comp().url() == null)) {
//yacyCore.log.logFine("DEBUG selectTransferContainersResource: not-bound url hash '" + iEntry.urlHash() + "' for word hash " + container.getWordHash());
notBoundCounter++;
urlIter.remove();