Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
ManifoldCF 2.17
-
None
Description
Sometimes the following exception is triggered on some documents during crawl:
Error tossed: charsetjava.lang.NullPointerException: charset at java.io.InputStreamReader.<init>(InputStreamReader.java:115) ~[?:?] at org.apache.manifoldcf.crawler.connectors.jira.JiraSession.convertToString(JiraSession.java:183) ~[?:?] at org.apache.manifoldcf.crawler.connectors.jira.JiraSession.getRest(JiraSession.java:237) ~[?:?] at org.apache.manifoldcf.crawler.connectors.jira.JiraSession.getIssue(JiraSession.java:317) ~[?:?] at org.apache.manifoldcf.crawler.connectors.jira.JiraRepositoryConnector$GetIssueThread.run(JiraRepositoryConnector.java:1409) ~[?:?]
After investigations it appears that the getCharSet method of the JiraSession class may return null charset when it is null (no check) or a UnsupportedCharsetException happens