Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Potential NRE due to XmlQueryType.SchemaType returning null #44148

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
krwq opened this issue Nov 2, 2020 · 2 comments
Open

Potential NRE due to XmlQueryType.SchemaType returning null #44148

krwq opened this issue Nov 2, 2020 · 2 comments
Labels
area-System.Xml backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity
Milestone

Comments

@krwq
Copy link
Member

krwq commented Nov 2, 2020

This is found when applying nullable annotations.

Internal docs of XmlQueryType.SchemaType mention that this property should never return null and should return AnyType instead but inside of ChoiceType for certain node types (i.e. Item, Node) we do return null which may cause NRE for some input XML schemas.

We should attempt to create a repro first (to validate this is even possible) and add it as a test before fixing this.

@krwq krwq added this to the Future milestone Nov 2, 2020
@ghost
Copy link

ghost commented Nov 2, 2020

Tagging subscribers to this area: @buyaa-n, @krwq, @jeffhandley
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

This process is part of our issue cleanup automation.

@dotnet-policy-service dotnet-policy-service bot added backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity labels May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Xml backlog-cleanup-candidate An inactive issue that has been marked for automated closure. no-recent-activity
Projects
No open projects
Development

No branches or pull requests

1 participant