fixed a NPE in surrogat processing

pull/1/head
Michael Peter Christen 11 years ago
parent 0db8e34625
commit a125904a1c

@ -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(

Loading…
Cancel
Save