java.lang.NullPointerException

Atlassian JIRA | Brandon Turner | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    *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|https://github.com/rapid7-cookbooks/nexpose/issues/5]), a NPE is thrown and the synchronization fails. {code} 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) {code} 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

    Atlassian JIRA | 3 years ago | Brandon Turner
    java.lang.NullPointerException
  2. 0

    *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|https://github.com/rapid7-cookbooks/nexpose/issues/5]), a NPE is thrown and the synchronization fails. {code} 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) {code} 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

    Atlassian JIRA | 3 years ago | Brandon Turner
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.plugins.dvcs.sync.IssueCommentPayloadEventProcessor.process()
    2. com.atlassian.jira
      GitHubEventServiceImpl$1.doInTransaction
      1. com.atlassian.jira.plugins.dvcs.sync.IssueCommentPayloadEventProcessor.process(IssueCommentPayloadEventProcessor.java:42)
      2. com.atlassian.jira.plugins.dvcs.spi.github.service.impl.GitHubEventProcessorAggregatorImpl.process(GitHubEventProcessorAggregatorImpl.java:104)
      3. com.atlassian.jira.plugins.dvcs.service.GitHubEventServiceImpl$1.doInTransaction(GitHubEventServiceImpl.java:120)
      4. com.atlassian.jira.plugins.dvcs.service.GitHubEventServiceImpl$1.doInTransaction(GitHubEventServiceImpl.java:99)
      4 frames
    3. com.atlassian.sal
      HostContextTransactionTemplate$1.doInTransaction
      1. com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
      1 frame