Skip to content

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

fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1915&hilit=&p=13249#p13249

orbiter485c9406e5fa
diff --git a/source/de/anomic/kelondro/text/IndexCache.java b/source/de/anomic/kelondro/text/IndexCache.java
index 689ff73fa..ea877c058 100644
--- a/source/de/anomic/kelondro/text/IndexCache.java
+++ b/source/de/anomic/kelondro/text/IndexCache.java
@@ -305,6 +305,7 @@ public final class IndexCache implements Index, IndexReader, Iterable<ReferenceC
}
public synchronized void addEntry(final String wordHash, final ReferenceRow newEntry, final long updateTime, final boolean dhtCase) {
+ if (heap == null) return; // there was already a shutdown
heap.addEntry(wordHash, newEntry);
hashScore.incScore(wordHash);
hashDate.setScore(wordHash, intTime(updateTime));