From d8d9735b4f7efa80c6ca86bd6db327489dcf6177 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 3 Nov 2011 14:41:38 +0000 Subject: [PATCH] stability bugfix git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8012 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/table/Table.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java index 98711b91e..236a2211e 100644 --- a/source/net/yacy/kelondro/table/Table.java +++ b/source/net/yacy/kelondro/table/Table.java @@ -485,7 +485,15 @@ public class Table implements Index, Iterable { 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;