more tolerance in case of corrupted file

pull/1/head
Michael Peter Christen 13 years ago
parent acc6db28ff
commit 0cf3d36eae

@ -689,7 +689,9 @@ public class Table implements Index, Iterable<Row.Entry> {
continue; continue;
} }
this.file.put(i, p, 0); this.file.put(i, p, 0);
this.index.put(lr.getPrimaryKeyBytes(), i); byte[] pk = lr.getPrimaryKeyBytes();
if (pk == null) continue;
this.index.put(pk, i);
break; break;
} }
} }

Loading…
Cancel
Save