Skip to content

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

protection against bad dht-flush word selection

orbiterf09906194468
diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.java
index 84b88c3a1..7ddf187c5 100644
--- a/source/de/anomic/plasma/plasmaWordIndex.java
+++ b/source/de/anomic/plasma/plasmaWordIndex.java
@@ -301,7 +301,7 @@ public final class plasmaWordIndex implements indexRI {
wordHash = ram.bestFlushWordHash();
// move one container from ram to flush list
- c = ram.deleteContainer(wordHash);
+ if (wordHash == null) c = null; else c = ram.deleteContainer(wordHash);
}
if (c != null) containerList.add(c);
}