From 45ae3da7e7dc5480ba005f119427914c64c472d5 Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 14 Apr 2008 05:33:32 +0000 Subject: [PATCH] another patch to prevent NPE in EcoTable git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4698 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/kelondroEcoTable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/de/anomic/kelondro/kelondroEcoTable.java b/source/de/anomic/kelondro/kelondroEcoTable.java index 972eed500..7a13bac08 100644 --- a/source/de/anomic/kelondro/kelondroEcoTable.java +++ b/source/de/anomic/kelondro/kelondroEcoTable.java @@ -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);