Skip to content

Fix null output in GenerateGlobalUsings task#52806

Merged
ViktorHofer merged 1 commit intomainfrom
ViktorHofer-patch-1
Feb 3, 2026
Merged

Fix null output in GenerateGlobalUsings task#52806
ViktorHofer merged 1 commit intomainfrom
ViktorHofer-patch-1

Conversation

@ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Feb 3, 2026

Fixes #52803

The preallocated string array lines was initialized with a length of input Using elements but we deduplicate those elements. That resulted in null elements getting returned when there are indeed duplicates.

This is usually not an issue but we noticed this in a new msbuild mode that doesn't yet handle null elements correctly.

@ViktorHofer ViktorHofer enabled auto-merge (squash) February 3, 2026 16:05
@ViktorHofer ViktorHofer merged commit 4e19c66 into main Feb 3, 2026
27 checks passed
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-1 branch February 3, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid nulls in GenerateGlobalUsings task Lines Output

3 participants