orbiter 15 years ago
parent 5df628a2a4
commit bd05e57d3b

@ -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();

@ -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;
}

Loading…
Cancel
Save