Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16294

REST: Exception when expanding RestChange

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Medium
    • 5.14.0
    • 5.9.3, 5.9.4
    • REST API
    • None

    Description

      Description

      Retrieving http://localhost:8085/rest/api/latest/result/TEST-TEST.json?expand=results.result.vcsRevisions.vcsRevision.changes.change fails with NullPointerException when it contains a build referencing a commit and the corresponding repository has been deleted. However, displaying the build, commit etc. in the web interface seems to work.

      java.lang.NullPointerException
          at com.atlassian.bamboo.plugins.rest.model.build.change.RestChange.expand(RestChange.java:134)
          at com.atlassian.bamboo.plugins.rest.model.build.change.RestChangeExpander.expandInternal(RestChangeExpander.java:12)
          at com.atlassian.bamboo.plugins.rest.model.build.change.RestChangeExpander.expandInternal(RestChangeExpander.java:5)
          at com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander.expand(AbstractRecursiveEntityExpander.java:9)
      [...]
      

      Reproduce the issue

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              f540b6ab31b5 Hendrik Payer
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: