another patch to prevent NPE in EcoTable

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4698 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent cb93ded5c6
commit 45ae3da7e7

@ -338,6 +338,7 @@ public class kelondroEcoTable implements kelondroIndex {
// construct the row using the copy in RAM
kelondroRow.Entry v = table.get(i);
assert v != null;
if (v == null) return null;
assert key.length == rowdef.primaryKeyLength;
System.arraycopy(key, 0, b, 0, key.length);
System.arraycopy(v.bytes(), 0, b, rowdef.primaryKeyLength, rowdef.objectsize - rowdef.primaryKeyLength);

Loading…
Cancel
Save