Apache Nutch is an extensible and scalable web crawler
NUTCH-862 HttpClient null pointer exception.
Andrzej Bialecki08b38ce79c63
diff --git a/CHANGES.txt b/CHANGES.txtindex bc97450e9..c1583507e 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogRelease 1.3 - Current Development+* NUTCH-862 HttpClient null pointer exception (Sebastian Nagel via ab)+* NUTCH-870 Injector should add the metadata before calling injectedScore (jnioche via mattmann)* NUTCH-869 Add parse-html back (jnioche)diff --git a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.javaindex dadb00bd5..43baf371c 100644--- a/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java+++ b/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java@@ -134,7 +134,9 @@ public class HttpResponse implements Response {if (code == 200) throw new IOException(e.toString());// for codes other than 200 OK, we are fine with empty content} finally {- in.close();+ if (in != null) {+ in.close();+ }get.abort();}