Skip to content

Commit

Permalink
Remove dead code null check from DirectoryEntry (dotnet/corefx#41843)
Browse files Browse the repository at this point in the history
* Fix possible NRE in DirectoryEntry from System.DirectoryServices

* Update DirectoryEntry.cs


Commit migrated from dotnet/corefx@c037aa0
  • Loading branch information
Marusyk authored and stephentoub committed Oct 21, 2019
1 parent 488a7ab commit 9129fd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ public void RefreshCache(string[] propertyNames)
// this is a half-lie, but oh well. Without it, this method is pointless.
_cacheFilled = true;
// we need to partially refresh that properties table.
if (_propertyCollection != null && propertyNames != null)
if (_propertyCollection != null)
{
for (int i = 0; i < propertyNames.Length; i++)
{
Expand Down

0 comments on commit 9129fd9

Please sign in to comment.