Skip to content

Conversation

@jiripolasek
Copy link
Contributor

This PR adds a null guard for StringLineGroup.Lines to prevent iteration when it is null.

  • Applied in MyCodeBlock, where it caused a crash.
  • Added defensively in HtmlBlockRenderer.

References:

@jiripolasek
Copy link
Contributor Author

@dotnet-policy-service agree

Copy link
Member

@Arlodotexe Arlodotexe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, no issues found.

@Arlodotexe Arlodotexe enabled auto-merge October 2, 2025 20:12
@jiripolasek
Copy link
Contributor Author

image

@Arlodotexe Arlodotexe merged commit 4d386f0 into CommunityToolkit:main Oct 2, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants