Skip to content

Commit

Permalink
Null check
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Jul 9, 2024
1 parent 5adbdc8 commit e3d60a7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public sealed class NamedPipeTransportOptions
/// </returns>
public static NamedPipeServerStream CreateDefaultNamedPipeServerStream(CreateNamedPipeServerStreamContext context)
{
ArgumentNullException.ThrowIfNull(context);

if (context.PipeSecurity != null)
{
return NamedPipeServerStreamAcl.Create(
Expand Down

0 comments on commit e3d60a7

Please sign in to comment.