Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for http://www.yacy-forum.de/viewtopic.php?p=29878#29878
orbiter3ef77d2030e9
diff --git a/source/de/anomic/kelondro/kelondroMapObjects.java b/source/de/anomic/kelondro/kelondroMapObjects.javaindex 8e564d2f8..d455f57ab 100644--- a/source/de/anomic/kelondro/kelondroMapObjects.java+++ b/source/de/anomic/kelondro/kelondroMapObjects.java@@ -333,16 +333,20 @@ public class kelondroMapObjects extends kelondroObjects {}public Object next() {- final String nextKey = (String) keyIterator.next();- if (nextKey == null) {- finish = true;- return null;+ String nextKey;+ Map map;+ while (keyIterator.hasNext()) {+ nextKey = (String) keyIterator.next();+ if (nextKey == null) {+ finish = true;+ return null;+ }+ map = getMap(nextKey);+ if (map == null) continue; // circumvention of a modified exception+ map.put("key", nextKey);+ return map;}- final Map map = getMap(nextKey);- //assert (map != null) : "nextKey = " + nextKey;- if (map == null) throw new kelondroException("no more elements available");- map.put("key", nextKey);- return map;+ throw new kelondroException("no more elements available");}public void remove() {