Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

more tolerance in case of corrupted file

Michael Peter Christen0cf3d36eae3d
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<Row.Entry> {
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;
}
}