From 8f77719091c6b100abf732e1b828d731ca4698cb Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 4 Aug 2014 02:38:58 +0200 Subject: [PATCH] fix "Ljava.lang.String" in crawl queue anchor name (e.g. IndexCreateQueues_p.html?stack=LOCAL with images in queue) --- source/net/yacy/document/Document.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/net/yacy/document/Document.java b/source/net/yacy/document/Document.java index a9ced37c6..ed3ec6e5b 100644 --- a/source/net/yacy/document/Document.java +++ b/source/net/yacy/document/Document.java @@ -985,9 +985,11 @@ dc_rights } StringBuilder sb = new StringBuilder(60); sb.append(d.dc_title()); - if (!d.dc_description().equals(d.dc_title()) && sb.length() < Request.descrLength - tagname.length()) { - sb.append(' '); - sb.append(d.dc_description()); + if (d.dc_description().length > 0) { + if (!d.dc_description()[0].equals(d.dc_title()) && sb.length() < Request.descrLength - tagname.length()) { + sb.append(' '); + sb.append(d.dc_description()[0]); + } } if (sb.length() < Request.descrLength - tagname.length()) { sb.append(' ');