Skip to content

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

bugfix for http://www.yacy-forum.de/viewtopic.php?p=27207#27207 and http://www.yacy-forum.de/viewtopic.php?p=27219#27219

orbitere6044e5198c0
diff --git a/source/de/anomic/kelondro/kelondroCollectionIndex.java b/source/de/anomic/kelondro/kelondroCollectionIndex.java
index e867eec8e..05eb2a95b 100644
--- a/source/de/anomic/kelondro/kelondroCollectionIndex.java
+++ b/source/de/anomic/kelondro/kelondroCollectionIndex.java
@@ -161,7 +161,7 @@ public class kelondroCollectionIndex {
// write a log
if (System.currentTimeMillis() - lastlog > 30000) {
- serverLog.logFine("STARTUP", "created " + j + " RWI index entries. " + (((System.currentTimeMillis() - start) * (array.USAGE.allCount() - j) / j) / 60000) + " minutes remaining for this array");
+ serverLog.logFine("STARTUP", "created " + j + " RWI index entries. " + (((System.currentTimeMillis() - start) * (array.USAGE.allCount() - j) / ((j == 0) ? 1 : j)) / 60000) + " minutes remaining for this array");
lastlog = System.currentTimeMillis();
}
}
diff --git a/source/de/anomic/plasma/plasmaCrawlLURLOldEntry.java b/source/de/anomic/plasma/plasmaCrawlLURLOldEntry.java
index 6755c6861..fa10f905d 100644
--- a/source/de/anomic/plasma/plasmaCrawlLURLOldEntry.java
+++ b/source/de/anomic/plasma/plasmaCrawlLURLOldEntry.java
@@ -247,7 +247,7 @@ public class plasmaCrawlLURLOldEntry implements plasmaCrawlLURLEntry {
}
public String language() {
- return language;
+ return (language == null) ? "en" : language;
}
public int size() {