From ea2bd43b28aaf8d9264ab8fc3a454c88ff210465 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 9 May 2012 12:29:07 +0200 Subject: [PATCH] patch for broken configurations --- source/net/yacy/search/Switchboard.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index d1246873b..31c907c07 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -1012,6 +1012,7 @@ public final class Switchboard extends serverSwitch // load network configuration into settings String networkUnitDefinition = getConfig("network.unit.definition", "defaults/yacy.network.freeworld.unit"); + if (networkUnitDefinition.length() == 0) networkUnitDefinition = "defaults/yacy.network.freeworld.unit"; // patch for a strange failure case where the path was overwritten by empty string // patch old values if ( networkUnitDefinition.equals("yacy.network.unit") ) {