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; }