Author: tejasp
Date: Tue Apr 30 21:42:19 2013
New Revision: 1477847
URL: http://svn.apache.org/r1477847
Log:
NUTCH-1334 NPE in FetcherOutputFormat
Modified:
nutch/trunk/CHANGES.txt
nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java
Modified: nutch/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1477847&r1=1477846&r2=1477847&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Tue Apr 30 21:42:19 2013
@@ -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)
Modified: nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java
URL:
http://svn.apache.org/viewvc/nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java?rev=1477847&r1=1477846&r2=1477847&view=diff
==============================================================================
--- nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java
(original)
+++ nutch/trunk/src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java Tue
Apr 30 21:42:19 2013
@@ -98,9 +98,9 @@ public class FetcherOutputFormat impleme
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);
}