Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1662

JIRA connector - NullPointerException after getCharSet method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 2.17
    • ManifoldCF 2.19
    • JIRA connector
    • 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 

      Attachments

        1. patch-CONNECTORS-1662
          1 kB
          Julien Massiera

        Activity

          People

            kwright@metacarta.com Karl Wright
            julienFL Julien Massiera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: