Skip to content

[BUG]: IssueUpdate throws NRE if trying to initialise with labels or assignees #2992

Open
@thomhurst

Description

@thomhurst

What happened?

The object can be initialised with labels/assignes being added to the collection. But the collection is null unless the "AddLabel/AddAssignee" method is called.

var issueUpdate = new IssueUpdate
{
    Labels = { "Foo" }
};

Versions

v14

Relevant log output

> Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions