Accessing BuildStatus properties from BuildStatusSetEvents can produce unexpected nulls

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 5.13.0, 5.9.2, 5.11.2, 5.10.2, 5.12.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Severity 3 - Minor

      When a BuildStatusSetEvent is raised, apps which attempt to access properties on the BuildStatus it contains can receive unexpected null values from methods which are explicitly documented as not being able to return them. (BuildState seems to be the most common.)

      This issue was originally raised as Eernie/bitbucket-webhooks-plugin#88. However, nothing in how that app is using the BuildStatusSetEvent should trigger these null values. Instead, the issue appears to be related to the fact that the BuildStatus instance on the event is an ActiveObjects proxy, rather than a simple POJO.

            Assignee:
            Unassigned
            Reporter:
            Bryan Turner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: