Skip to content

chore: Suppress XmlException thrown internally on AppConfigGenerator::Generate method #2817

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Aug 5, 2025

This PR add extra check logics to avoid issue that XmlException is internally thrown when TextReader.Null is passed to AppConfigGenerator::Generate method.

Background
When Break on Exception thrown setting is enabled on debugger attached environment.
It's always interrupted by XmlException is thrown on AppConfigGenerator::Generate method.

This PR fix this issue. By modifing code not throw exceptions on normal execution path.

Additional Changes

  • Add #nullable enable setting on AppConfigGenerator.cs
  • Refactor code to resolve errors that are relating nullability.

@filzrev filzrev force-pushed the chore-suppress-exeption-thrown-when-nulltextreader branch from cf21588 to 49be942 Compare August 5, 2025 11:14
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.

1 participant