Apache Nutch is an extensible and scalable web crawler
NUTCH-1334 NPE in FetcherOutputFormat
Tejas Patil40c3971f42a8
diff --git a/CHANGES.txt b/CHANGES.txtindex 0fb2612bf..7e1f9a74e 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change Log(trunk): Current Development+* NUTCH-1334 NPE in FetcherOutputFormat (jnioche via tejasp)+* NUTCH-1549 Fix deprecated use of Tika MimeType API in o.a.n.util.MimeUtil (tejasp)* NUTCH-346 Improve readability of logs/hadoop.log (Renaud Richardet via tejasp)diff --git a/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java b/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.javaindex a82ea2e79..49528b286 100644--- a/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java+++ b/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java@@ -98,9 +98,9 @@ public class FetcherOutputFormat implements OutputFormat<Text, NutchWritable> {if (w instanceof CrawlDatum)fetchOut.append(key, w);- else if (w instanceof Content)+ else if (w instanceof Content && contentOut != null)contentOut.append(key, w);- else if (w instanceof Parse)+ else if (w instanceof Parse && parseOut != null)parseOut.write(key, (Parse)w);}