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

NPE in hudson.plugins.mantis.changeset.AbstractChangeSet.getRepositoryBrowser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mantis-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I got the following error after an otherwise successful build:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 minutes 19 seconds
      [INFO] Finished at: Fri Jul 17 18:04:11 CEST 2009
      [INFO] Final Memory: 216M/528M
      [INFO] ------------------------------------------------------------------------
      channel stopped
      FATAL: null
      java.lang.NullPointerException
      at
      hudson.plugins.mantis.changeset.AbstractChangeSet.getRepositoryBrowser(AbstractChangeSet.java:42)
      at
      hudson.plugins.mantis.changeset.AbstractChangeSet.getChangeSetLink(AbstractChangeSet.java:47)
      at
      hudson.plugins.mantis.changeset.SubversionChangeSet.createChangeLog(SubversionChangeSet.java:27)
      at hudson.plugins.mantis.Updater.createUpdateText(Updater.java:102)
      at hudson.plugins.mantis.Updater.perform(Updater.java:73)
      at hudson.plugins.mantis.MantisIssueUpdater.perform(MantisIssueUpdater.java:53)
      at
      hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:379)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:511)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:352)
      at hudson.model.Run.run(Run.java:958)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:252)
      at hudson.model.ResourceController.execute(ResourceController.java:93)
      at hudson.model.Executor.run(Executor.java:118)

      The previous 3 builds before this one failed totally and I changed a lot of
      stuff (e.g. fiddled with the POMs) - so it wasn't a 'standard' situation I
      guess. Nevertheless, I think this shouldn't happen.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : sogabe
          Path:
          trunk/hudson/plugins/mantis/src/main/java/hudson/plugins/mantis/changeset/AbstractChangeSet.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=20122
          Log:
          [FIXED JENKINS-4049] check if build.getProject() is null or not. if you get NPE again, please reopen.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : sogabe Path: trunk/hudson/plugins/mantis/src/main/java/hudson/plugins/mantis/changeset/AbstractChangeSet.java http://fisheye4.cenqua.com/changelog/hudson/?cs=20122 Log: [FIXED JENKINS-4049] check if build.getProject() is null or not. if you get NPE again, please reopen.
          Hide
          sogabe sogabe added a comment -

          I'll fix in next version. But I don't know why NPE was thrown.

          Show
          sogabe sogabe added a comment - I'll fix in next version. But I don't know why NPE was thrown.

            People

            Assignee:
            sogabe sogabe
            Reporter:
            kutzi kutzi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: