git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6859 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 15 years ago
parent ac16f582aa
commit 0a5fd15703

@ -602,7 +602,13 @@ public class Table implements ObjectIndex, Iterable<Row.Entry> {
while (file.size() > 0) { while (file.size() > 0) {
file.cleanLast(p, 0); file.cleanLast(p, 0);
final Row.Entry lr = rowdef.newEntry(p); 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); file.put(i, p, 0);
index.put(lr.getPrimaryKeyBytes(), i); index.put(lr.getPrimaryKeyBytes(), i);
break; break;

Loading…
Cancel
Save