[ 
https://issues.apache.org/jira/browse/NUTCH-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555843#action_12555843
 ] 

Emmanuel Joke commented on NUTCH-531:
-------------------------------------

It looks like this issue has been solved with the integration of the framwerok 
Tika. 
I guess we could close it. Isn't it? 


> 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
>         Attachments: NUTCH-531-draft.patch
>
>
> 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.

Reply via email to