Skip to content

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

fix for http://forum.yacy-websuche.de/viewtopic.php?p=18563#p18563

orbiterbd05e57d3bf2
diff --git a/source/de/anomic/crawler/ZURL.java b/source/de/anomic/crawler/ZURL.java
index 935baeffd..53c6367bc 100755
--- a/source/de/anomic/crawler/ZURL.java
+++ b/source/de/anomic/crawler/ZURL.java
@@ -127,7 +127,6 @@ public class ZURL implements Iterable<ZURL.Entry> {
final int workcount,
String anycause) {
assert executor != null;
- assert executor.length() > 0;
if (anycause == null) anycause = "unknown";
Entry entry = new Entry(bentry, executor, workdate, workcount, anycause);
entry.store();
diff --git a/source/de/anomic/http/server/HTTPDemon.java b/source/de/anomic/http/server/HTTPDemon.java
index d543ba7be..730e72f08 100644
--- a/source/de/anomic/http/server/HTTPDemon.java
+++ b/source/de/anomic/http/server/HTTPDemon.java
@@ -252,7 +252,7 @@ public final class HTTPDemon implements serverHandler, Cloneable {
// is always (but not only) called if an IO-dependent exception occurrs.
log.logSevere("Unexpected Error. " + e.getClass().getName(),e);
final String message = e.getMessage();
- if (message.indexOf("heap space") > 0) Log.logException(e);
+ if (message != null && message.indexOf("heap space") > 0) Log.logException(e);
return "501 Exception occurred: " + message;
}