Cache.jsp some times generate NullPointerException
--------------------------------------------------
Key: NUTCH-123
URL: http://issues.apache.org/jira/browse/NUTCH-123
Project: Nutch
Type: Bug
Components: web gui
Environment: All systems
Reporter: Lutischán Ferenc
Priority: Critical
There is a problem with the following line in the cached.jsp:
String contentType = (String) metaData.get("Content-Type");
In the segments data there is some times not equals "Content-Type", there are
"content-type" or "Content-type" etc.
The solution, insert these lines over the above line:
for (Enumeration eNum = metaData.propertyNames(); eNum.hasMoreElements();) {
content = (String) eNum.nextElement();
if ("content-type".equalsIgnoreCase (content)) {
break;
}
}
final String contentType = (String) metaData.get(content);
Regards,
Ferenc
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers