Skip to content

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

patch for strange bug reported by email

orbiter807756150e94
diff --git a/source/de/anomic/kelondro/kelondroMap.java b/source/de/anomic/kelondro/kelondroMap.java
index 1e5e53536..ce3cac429 100644
--- a/source/de/anomic/kelondro/kelondroMap.java
+++ b/source/de/anomic/kelondro/kelondroMap.java
@@ -103,9 +103,9 @@ public class kelondroMap {
Map map;
while (it.hasNext()) {
key = (String) it.next();
-// System.out.println("kelondroMap: enumerating key " + key);
map = get(key);
-
+ if (map == null) break;
+
if (sortfields != null) for (int i = 0; i < sortfields.length; i++) {
value = (String) map.get(sortfields[i]);
if (value != null) cluster[i].setScore(key, kelondroMScoreCluster.string2score(value));