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://forum.yacy-websuche.de/viewtopic.php?p=20017#p20017
orbiterac16f582aa4e
diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.javaindex b02d37d06..5a5407085 100644--- a/source/net/yacy/kelondro/table/Table.java+++ b/source/net/yacy/kelondro/table/Table.java@@ -599,10 +599,14 @@ public class Table implements ObjectIndex, Iterable<Row.Entry> {table = null;}- file.cleanLast(p, 0);- file.put(i, p, 0);- final Row.Entry lr = rowdef.newEntry(p);- index.put(lr.getPrimaryKeyBytes(), i);+ while (file.size() > 0) {+ file.cleanLast(p, 0);+ final Row.Entry lr = rowdef.newEntry(p);+ if (lr == null) continue; // in case that p is not well-formed lr may be null+ file.put(i, p, 0);+ index.put(lr.getPrimaryKeyBytes(), i);+ break;+ }}}}