Skip to content

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

another fix for url-db migration

orbiter182554002036
diff --git a/source/yacy.java b/source/yacy.java
index 3838a3fe2..ddb89c211 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -1140,7 +1140,13 @@ public final class yacy {
plasmaCrawlLURLEntry.Components comp;
byte[] dummymd5 = new byte[0];
while (eiter.hasNext()) {
- oldrow = (kelondroRow.Entry) eiter.next();
+ try {
+ oldrow = (kelondroRow.Entry) eiter.next();
+ } catch (Exception e) {
+ // an IOException may occur here
+ e.printStackTrace();
+ oldrow = null;
+ }
if (oldrow != null) try {
oldentry = new plasmaCrawlLURLOldEntry(oldrow, null);
comp = oldentry.comp();