From 286853fd39db0788fd4b5d60556b5256b8dfe384 Mon Sep 17 00:00:00 2001 From: theli Date: Sat, 3 Sep 2005 07:40:51 +0000 Subject: [PATCH] =?UTF-8?q?*)=20Bugfix=20for=20"YACY=20h=C3=A4ngt=20sich?= =?UTF-8?q?=20beim=20Beenden=20auf"=20Bug=20=20=20=20See:=20http://www.yac?= =?UTF-8?q?y-forum.de/viewtopic.php=3Fp=3D8997?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@643 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/httpc.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"); + } } /**