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

@NotNull annotation being triggered from incorrect call

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • None
    • 2.6
    • Tasks
    • None
    • Source download compiled in JetBrains IDEA Community on Windows. JDK 1.6.
      Configured to run as described on the Bamboo Developer Hub

    Description

      When attempting to create my first build plan from a fresh compile of Bamboo 2.6 and 2.6.1, I was met with a stacktrace describing a @NotNull violation when I submitted the form asking for the project and build names/keys – with a blank description. It did not continue the plan creation.

      It pointed to line 40 of com.atlassian.bamboo.project.DefaultProjectManager under the "createProject(@NotNull String key, @NotNull String name)" method. This method dispatches to the 3-parameter "createProject(@NotNull String key, @NotNull String name, @NotNull String description)" – however it sends null as the value for description.

      I changed the method to send in "" instead of null and that issue went away.

      Attachments

        Activity

          People

            pbruski Przemek Bruski
            a9a15d7f9ca6 Ryan Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: