fixed possibly bug with indexOutOfBoundsException

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2528 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 03835c2ee8
commit cc97a3e9c6

@ -190,19 +190,15 @@ public class kelondroRow {
if (nickref == null) genNickRef();
String nick;
int p;
Object[] f;
rowinstance = new byte[objectsize];
for (int i = 0; i < elts.length; i++) {
p = elts[i].indexOf('=');
if (p > 0) {
nick = elts[i].substring(0, p).trim();
f = (Object[]) nickref.get(nick);
if (f != null) {
System.arraycopy(
elts[i].substring(p + 1).trim().getBytes(), 0,
rowinstance, ((Integer) f[1]).intValue(),
((kelondroColumn) f[0]).cellwidth());
}
if (p + 1 == elts[i].length())
setCol(nick, null);
else
setCol(nick, elts[i].substring(p + 1).trim().getBytes());
}
}
}

Loading…
Cancel
Save