Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
thomhurst opened this issue Jan 25, 2025 · 0 comments · May be fixed by #2993
Open
1 task done

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

thomhurst opened this issue Jan 25, 2025 · 0 comments · May be fixed by #2993
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@thomhurst
Copy link
Contributor

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
@thomhurst thomhurst added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Status: 🆕 Triage
Development

Successfully merging a pull request may close this issue.

1 participant