fix NRE in XNodeNavigator.MoveToNext(XPathNodeType) (#32288)
authormayorovp <mayorovp@gmail.com>
Wed, 26 Feb 2020 02:19:57 +0000 (07:19 +0500)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2020 02:19:57 +0000 (18:19 -0800)
commit97b0b37aa1d6875a248751e75ad088961bfe9ff5
treee420af640f71da90fb47d7b299e3c5f15f7fab5f
parentebf2906280b18e386f332296873e8f76372d41b0
fix NRE in XNodeNavigator.MoveToNext(XPathNodeType) (#32288)

* fix NRE in XNodeNavigator.MoveToNext(XPathNodeType)

fixes #31710

* Adding test case

Co-authored-by: buyaa-n <buyankhishig.namnan@microsoft.com>
src/libraries/Common/tests/System/Xml/XPath/FuncLocation/PathNodeTests.cs
src/libraries/System.Private.Xml.Linq/src/System/Xml/XPath/XNodeNavigator.cs