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"); + } } /**