You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by le...@apache.org on 2013/04/03 23:15:07 UTC

svn commit: r1464207 - in /nutch/branches/2.x: CHANGES.txt src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Author: lewismc
Date: Wed Apr  3 21:15:07 2013
New Revision: 1464207

URL: http://svn.apache.org/r1464207
Log:
NUTCH-1552 possibility of a NPE in index-more plugin

Modified:
    nutch/branches/2.x/CHANGES.txt
    nutch/branches/2.x/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Modified: nutch/branches/2.x/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/branches/2.x/CHANGES.txt?rev=1464207&r1=1464206&r2=1464207&view=diff
==============================================================================
--- nutch/branches/2.x/CHANGES.txt (original)
+++ nutch/branches/2.x/CHANGES.txt Wed Apr  3 21:15:07 2013
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Release 2.2 - Current Development
 
+* NUTCH-1552 possibility of a NPE in index-more plugin (kaveh minooie via lewismc)
+
 * NUTCH-1547 BasicIndexingFilter - Problem to index full title (Feng)
 
 * NUTCH-1389 parsechecker and indexchecker to report truncated content (snagel)

Modified: nutch/branches/2.x/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
URL: http://svn.apache.org/viewvc/nutch/branches/2.x/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java?rev=1464207&r1=1464206&r2=1464207&view=diff
==============================================================================
--- nutch/branches/2.x/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java (original)
+++ nutch/branches/2.x/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java Wed Apr  3 21:15:07 2013
@@ -199,7 +199,7 @@ public class MoreIndexingFilter implemen
     doc.add("type", mimeType);
 
     // Check if we need to split the content type in sub parts
-    if (conf.getBoolean("moreIndexingFilter.indexMimeTypeParts", true)) {
+    if ( null != contentType && conf.getBoolean("moreIndexingFilter.indexMimeTypeParts", true)) {
       String[] parts = getParts(contentType.toString());
 
       for(String part: parts) {