Fix NRE when context value is null in method Save from Principal class (dotnet/corefx...
authorRoman Marusyk <Marusyk@users.noreply.github.com>
Wed, 9 Oct 2019 23:37:13 +0000 (02:37 +0300)
committerSantiago Fernandez Madero <safern@microsoft.com>
Wed, 9 Oct 2019 23:37:13 +0000 (16:37 -0700)
commit7185890fe126de466dff5303e88563196546942b
tree5f3dead6519ca54c9c16269c606ca48ae9cb6184
parent607272fef158bfeaaaec59465b0afa5c8d698d02
Fix NRE when context value is null in method Save from Principal class (dotnet/corefx#41656)

* Fix NRE when context value is null in method Save from Principal class

* Add unit test

Commit migrated from https://github.com/dotnet/corefx/commit/30280e07adc3c1f0776ef9531b47a769e2b45420
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/Principal.cs
src/libraries/System.DirectoryServices.AccountManagement/tests/PrincipalTest.cs