From 4b649b0a110551b2664d76ffbca76d0e188e9947 Mon Sep 17 00:00:00 2001 From: luccioman Date: Thu, 30 Mar 2017 15:41:14 +0200 Subject: [PATCH 1/3] Fixed NPE case and API URL link on Solr HTML output for webgraph core. --- .../responsewriter/HTMLResponseWriter.java | 54 +++++++++++++------ 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java b/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java index 7876c7f17..8b05ba56d 100644 --- a/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java +++ b/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java @@ -33,6 +33,7 @@ import java.util.regex.Pattern; import net.yacy.cora.federate.solr.SolrType; import net.yacy.cora.lod.vocabulary.DublinCore; import net.yacy.search.schema.CollectionSchema; +import net.yacy.search.schema.WebgraphSchema; import org.apache.lucene.document.Document; import org.apache.lucene.index.IndexableField; @@ -72,7 +73,7 @@ public class HTMLResponseWriter implements QueryResponseWriter { /** * Append YaCy JavaScript license information to writer * @param writer must be non null - * @throws IOException when a write error occured + * @throws IOException when a write error occurred */ private void writeJSLicence(final Writer writer) throws IOException { writer.write("