Pages with no ContentType cause a Null Pointer exception
--------------------------------------------------------

                 Key: NUTCH-531
                 URL: https://issues.apache.org/jira/browse/NUTCH-531
             Project: Nutch
          Issue Type: Bug
          Components: fetcher
    Affects Versions: 0.9.0, 1.0.0
            Reporter: Carl Cerecke


Some pages cause a null pointer exception because the contentType is missing 
(e.g. http://www.absoluteit.co.nz and http://defence.allmedia.co.nz)

The solution that I used was to change line 165 (trunk) of Content.java to:
Text.writeString(out, contentType != null?contentType:"");

rfc2616 states this should be application/octet-stream if we don't know the 
content type, and can't figure it out.

But perhaps the problem is in getContentType() at line 281 (trunk). I don't yet 
know enough of how it is connected together to determine where the best place 
for fixing this bug is.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nutch-developers mailing list
Nutch-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to