stability bugfix

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8012 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 13 years ago
parent c31564ef08
commit d8d9735b4f

@ -485,7 +485,15 @@ public class Table implements Index, Iterable<Row.Entry> {
final Row.Entry cacherow;
if (this.table == null || (cacherow = this.table.get(i, false)) == null) {
// read row from the file
this.file.get(i, b, 0);
try {
this.file.get(i, b, 0);
} catch (final IndexOutOfBoundsException e) {
// there must be a problem with the table index
Log.logSevere("Table", "IndexOutOfBoundsException: " + e.getMessage(), e);
this.index.remove(key);
if (this.table != null) this.table.remove(key);
return null;
}
} else {
// construct the row using the copy in RAM
assert cacherow != null;

Loading…
Cancel
Save