From 75b03a458013b06a1085bbc23010a96d2d473b26 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 8 Sep 2006 19:15:55 +0000 Subject: [PATCH] fix for new ArrayIndexOutOfBoundException git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2524 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/index/indexURLEntry.java | 2 +- source/de/anomic/kelondro/kelondroRow.java | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/index/indexURLEntry.java b/source/de/anomic/index/indexURLEntry.java index 408742d80..d0ad2158e 100644 --- a/source/de/anomic/index/indexURLEntry.java +++ b/source/de/anomic/index/indexURLEntry.java @@ -148,7 +148,7 @@ public class indexURLEntry implements Cloneable, indexEntry { } public String toPropertyForm(boolean displayFormat) { - return entry.toPropertyForm(false, displayFormat, displayFormat); + return entry.toPropertyForm(true, displayFormat, displayFormat); } public Entry toKelondroEntry() { diff --git a/source/de/anomic/kelondro/kelondroRow.java b/source/de/anomic/kelondro/kelondroRow.java index 45d3fcf96..896aefb65 100644 --- a/source/de/anomic/kelondro/kelondroRow.java +++ b/source/de/anomic/kelondro/kelondroRow.java @@ -197,7 +197,12 @@ public class kelondroRow { if (p > 0) { nick = elts[i].substring(0, p).trim(); f = (Object[]) nickref.get(nick); - System.arraycopy(elts[i].substring(p + 1).trim().getBytes(), 0, rowinstance, ((Integer) f[1]).intValue(), ((kelondroColumn) f[0]).cellwidth()); + if (f != null) { + System.arraycopy( + elts[i].substring(p + 1).trim().getBytes(), 0, + rowinstance, ((Integer) f[1]).intValue(), + ((kelondroColumn) f[0]).cellwidth()); + } } } } @@ -401,7 +406,7 @@ public class kelondroRow { } public String toString() { - return toPropertyForm(true, true, true); + return toPropertyForm(true, false, false); } }