From 85ca96227ffafe8005c7f88fb0a70661739f06f7 Mon Sep 17 00:00:00 2001 From: lotus Date: Wed, 3 Feb 2010 19:33:59 +0000 Subject: [PATCH] fix for re-enable parser git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6643 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/document/TextParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/document/TextParser.java b/source/net/yacy/document/TextParser.java index 4f211e7d7..fab7e589f 100644 --- a/source/net/yacy/document/TextParser.java +++ b/source/net/yacy/document/TextParser.java @@ -364,7 +364,7 @@ public final class TextParser { public static String getDenyMime() { String s = ""; for (String d: denyMime) s += d + ","; - s = s.substring(0, s.length() - 1); + if (s.length() > 0) s = s.substring(0, s.length() - 1); return s; }