[ https://issues.apache.org/jira/browse/NUTCH-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Kubes updated NUTCH-575: ------------------------------- Attachment: sagar-search.patch This is a simplistic workaround to the problem. Currently urls with no content throw the NPE. This happens in both regular search results and in the opensearch servlet as the problem is in NutchBean while getting fetched segments. this happens more often in crawls with fewer numbers of pages as more non-content pages will tend to rise to top of search results. This patch prevents the NPE from being thrown. I think the problem is deeper though. I don't know why some URLs happen with a null Content object. As time and research permits I will attach a more comprehensive patch. > NPE in OpenSearchServlet when summary is null > --------------------------------------------- > > Key: NUTCH-575 > URL: https://issues.apache.org/jira/browse/NUTCH-575 > Project: Nutch > Issue Type: Bug > Components: searcher > Affects Versions: 0.9.0, 1.0.0 > Reporter: John H. Lee > Fix For: 1.0.0 > > Attachments: oss-npe.patch, sagar-search.patch > > > summaries[i].toHtml() is called without checking if summaries[i] is not null, > causing an unhandled NullPointerException and a failed OpenSearchServlet > query. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.