Skip to content

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

fix for http://www.yacy-forum.de/viewtopic.php?p=26439#26439

orbiterb062847797e8
diff --git a/source/de/anomic/index/indexURL.java b/source/de/anomic/index/indexURL.java
index 8aff43604..9ecbf0eb4 100644
--- a/source/de/anomic/index/indexURL.java
+++ b/source/de/anomic/index/indexURL.java
@@ -449,7 +449,7 @@ public class indexURL {
if (urlIndexCache.size() == 0) return;
synchronized (urlIndexCache) {
Iterator i = urlIndexCache.rows(true, false, null);
- try {
+ if (i.hasNext()) try {
urlIndexFile.put((kelondroRow.Entry) i.next());
i.remove();
} catch (IOException e) {