Skip to content

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

fix for new ArrayIndexOutOfBoundException

orbiter75b03a458013
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);
}
}