Skip to content

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

bugfix for property table loader (did not exclude comment lines)

orbiterc48c9735cb38
diff --git a/source/de/anomic/tools/nxTools.java b/source/de/anomic/tools/nxTools.java
index 7fae537ab..b819d86e3 100644
--- a/source/de/anomic/tools/nxTools.java
+++ b/source/de/anomic/tools/nxTools.java
@@ -79,6 +79,7 @@ public class nxTools {
HashMap props = new HashMap(list.size());
while (i.hasNext()) {
line = ((String) i.next()).trim();
+ if (line.startsWith("#")) continue; // exclude comments
//System.out.println("NXTOOLS_PROPS - LINE:" + line);
pos = line.indexOf("=");
if (pos > 0) props.put(line.substring(0, pos).trim(), line.substring(pos + 1).trim());