Skip to content

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

*) Bugfix for "YACY hängt sich beim Beenden auf" Bug See: http://www.yacy-forum.de/viewtopic.php?p=8997

theli286853fd39db
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java
index f6bb423dc..75c87657f 100644
--- a/source/de/anomic/http/httpc.java
+++ b/source/de/anomic/http/httpc.java
@@ -140,8 +140,10 @@ public final class httpc {
java.security.Security.setProperty("networkaddress.cache.ttl" , "60");
java.security.Security.setProperty("networkaddress.cache.negative.ttl" , "0");
sb = plasmaSwitchboard.getSwitchboard();
- useYacyReferer = sb.getConfig("useYacyReferer", "true").equals("true");
- yacyDebugMode = sb.getConfig("yacyDebugMode", "false").equals("true");
+ if (sb != null) {
+ useYacyReferer = sb.getConfig("useYacyReferer", "true").equals("true");
+ yacyDebugMode = sb.getConfig("yacyDebugMode", "false").equals("true");
+ }
}
/**