Skip to content

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

fix for http://forum.yacy-websuche.de/viewtopic.php?p=21439#p21439

orbitere753027c4392
diff --git a/source/net/yacy/kelondro/rwi/IndexCell.java b/source/net/yacy/kelondro/rwi/IndexCell.java
index 58d29a16b..16e2626ec 100644
--- a/source/net/yacy/kelondro/rwi/IndexCell.java
+++ b/source/net/yacy/kelondro/rwi/IndexCell.java
@@ -302,13 +302,12 @@ public final class IndexCell<ReferenceType extends Reference> extends AbstractBu
synchronized (failedURLs) {
for (byte[] b: failedURLs.keySet()) try {words.put(b);} catch (RowSpaceExceededException e) {}
}
-
- for (byte[] b: words) {
- HandleSet urls;
- synchronized (failedURLs) {
- urls = failedURLs.remove(b);
+
+ synchronized (failedURLs) {
+ for (byte[] b: words) {
+ HandleSet urls = failedURLs.remove(b);
+ if (urls != null) remove(b, urls);
}
- remove(b, urls);
}
this.countCache.clear();
}