Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33859

NPE when well-formed Jira Issue doesn't exist

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A NPE is raised when a well-formed jira issue key doen't exist:

      Error updating JIRA issues. Saving issues for next build.
      java.lang.NullPointerException
      	at hudson.plugins.jira.JiraIssue.<init>(JiraIssue.java:31)
      	at hudson.plugins.jira.Updater.getJiraIssues(Updater.java:208)
      	at hudson.plugins.jira.Updater.perform(Updater.java:114)
      	at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:64)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      	at hudson.model.Run.execute(Run.java:1763)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      

        Attachments

          Issue Links

            Activity

            Hide
            alobato Alvaro Lobato added a comment -

            Created PR with the fix.

            Show
            alobato Alvaro Lobato added a comment - Created PR with the fix.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Alvaro Lobato
            Path:
            src/main/java/hudson/plugins/jira/Updater.java
            http://jenkins-ci.org/commit/jira-plugin/8c914f19111f0b0519e17834a67381a96b14f4db
            Log:
            JENKINS-33859 NPE Error updating JIRA issues - Added NP check after
            retrieving the issue.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alvaro Lobato Path: src/main/java/hudson/plugins/jira/Updater.java http://jenkins-ci.org/commit/jira-plugin/8c914f19111f0b0519e17834a67381a96b14f4db Log: JENKINS-33859 NPE Error updating JIRA issues - Added NP check after retrieving the issue.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Radek Antoniuk
            Path:
            src/main/java/hudson/plugins/jira/Updater.java
            http://jenkins-ci.org/commit/jira-plugin/9dd3bae0734bb57567ddb0f8b80d6b4d047f8239
            Log:
            Merge pull request #93 from alvarolobato/master

            • upstream/pr/93:
              JENKINS-33859 NPE Error updating JIRA issues - Added NP check after retrieving the issue.
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radek Antoniuk Path: src/main/java/hudson/plugins/jira/Updater.java http://jenkins-ci.org/commit/jira-plugin/9dd3bae0734bb57567ddb0f8b80d6b4d047f8239 Log: Merge pull request #93 from alvarolobato/master upstream/pr/93: JENKINS-33859 NPE Error updating JIRA issues - Added NP check after retrieving the issue.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Radek Antoniuk
            Path:
            src/main/java/hudson/plugins/jira/JiraSession.java
            src/main/java/hudson/plugins/jira/JiraSite.java
            src/main/java/hudson/plugins/jira/Updater.java
            http://jenkins-ci.org/commit/jira-plugin/1d1747f04b6f7060b2de012efa3250feeab7b968
            Log:
            JENKINS-33859 - Mark existIssue deprecated

            Compare: https://github.com/jenkinsci/jira-plugin/compare/c40a6c24be95...1d1747f04b6f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Radek Antoniuk Path: src/main/java/hudson/plugins/jira/JiraSession.java src/main/java/hudson/plugins/jira/JiraSite.java src/main/java/hudson/plugins/jira/Updater.java http://jenkins-ci.org/commit/jira-plugin/1d1747f04b6f7060b2de012efa3250feeab7b968 Log: JENKINS-33859 - Mark existIssue deprecated Compare: https://github.com/jenkinsci/jira-plugin/compare/c40a6c24be95...1d1747f04b6f

              People

              Assignee:
              alobato Alvaro Lobato
              Reporter:
              alobato Alvaro Lobato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: