From 0a5fd157031855fe8f1b1b43a80b90fcf474a049 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 6 May 2010 22:06:31 +0000 Subject: [PATCH] :-( git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6859 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/table/Table.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java index 5a5407085..9b5910469 100644 --- a/source/net/yacy/kelondro/table/Table.java +++ b/source/net/yacy/kelondro/table/Table.java @@ -602,7 +602,13 @@ public class Table implements ObjectIndex, Iterable { 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 + if (lr == null) { + // in case that p is not well-formed lr may be null + // drop table copy because that becomes too complicated here + table.clear(); + table = null; + continue; + } file.put(i, p, 0); index.put(lr.getPrimaryKeyBytes(), i); break;