Skip to content

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

fixed a NPE in surrogat processing

Michael Peter Christena125904a1c5c
diff --git a/source/net/yacy/search/schema/WebgraphConfiguration.java b/source/net/yacy/search/schema/WebgraphConfiguration.java
index ed9063e18..dcf47277b 100644
--- a/source/net/yacy/search/schema/WebgraphConfiguration.java
+++ b/source/net/yacy/search/schema/WebgraphConfiguration.java
@@ -120,7 +120,7 @@ public class WebgraphConfiguration extends SchemaConfiguration implements Serial
final List<ImageEntry> images, final boolean inbound, final Collection<AnchorURL> links,
final String sourceName) {
boolean allAttr = this.isEmpty();
- boolean generalNofollow = responseHeader.get("X-Robots-Tag", "").indexOf("nofollow") >= 0;
+ boolean generalNofollow = responseHeader == null ? false : responseHeader.get("X-Robots-Tag", "").indexOf("nofollow") >= 0;
int target_order = 0;
for (final AnchorURL target_url: links) {
SolrInputDocument edge = getEdge(