diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java index 4de6fc9ba..366f387d4 100644 --- a/source/net/yacy/kelondro/table/Table.java +++ b/source/net/yacy/kelondro/table/Table.java @@ -689,7 +689,9 @@ public class Table implements Index, Iterable { continue; } 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; } }