Potential NRE due to XmlQueryType.SchemaType returning null #44148
Labels
area-System.Xml
backlog-cleanup-candidate
An inactive issue that has been marked for automated closure.
no-recent-activity
Milestone
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.
The text was updated successfully, but these errors were encountered: