Uploaded image for project: 'Jira Software Cloud'
  1. Jira Software Cloud
  2. JSWCLOUD-15818

NullPointerException when synchronizing GitHub issues that are not pull requests but have comments

    XMLWordPrintable

Details

    Description

      UPDATE: This bug happens when synchronizing against a GitHub repo that has at least one issue that is not a pull request and has comments.

      When synchronizing with GitHub, if a GitHub issue does not have an associated pull request (such as this one), a NPE is thrown and the synchronization fails.

      java.lang.NullPointerException
      	at com.atlassian.jira.plugins.dvcs.sync.IssueCommentPayloadEventProcessor.process(IssueCommentPayloadEventProcessor.java:42)
      	at com.atlassian.jira.plugins.dvcs.spi.github.service.impl.GitHubEventProcessorAggregatorImpl.process(GitHubEventProcessorAggregatorImpl.java:104)
      	at com.atlassian.jira.plugins.dvcs.service.GitHubEventServiceImpl$1.doInTransaction(GitHubEventServiceImpl.java:120)
      	at com.atlassian.jira.plugins.dvcs.service.GitHubEventServiceImpl$1.doInTransaction(GitHubEventServiceImpl.java:99)
      	at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
      	at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34)  <+2>
      	at java.lang.reflect.Method.invoke(Unknown Source)
      

      See https://bitbucket.org/atlassian/jira-bitbucket-connector/src/6d8ef9f36aa620f3f0f8faf44652b6654aaacc52/jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/sync/IssueCommentPayloadEventProcessor.java?at=jira-dvcs-connector-parent-2.0.2#cl-42

      Attachments

        Issue Links

          Activity

            People

              zliu ZehuaA
              30ff55d1a677 Brandon Turner
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: