diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs index 25fef51a62..3f2ebe891f 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs @@ -874,11 +874,13 @@ namespace Microsoft.PowerShell.Commands /// /// /// + /// throw if cmdlet is null internal ExportCsvHelper(PSCmdlet cmdlet, char delimiter) { if (cmdlet == null) { + throw new ArgumentNullException("cmdlet"); } _cmdlet = cmdlet; _delimiter = delimiter;