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 19 years ago
parent 03835c2ee8
commit cc97a3e9c6

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

Loading…
Cancel
Save