From b9467e5bb70d5092b1710ec3989b60de12a7b597 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 14:41:56 +0000 Subject: [PATCH 1/3] Initial plan From d6b8d144fe7913ed90f712ef9e2d77c5d703ea2e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 14:44:49 +0000 Subject: [PATCH 2/3] Fix null Values handling in New-SignalChart to throw terminating error Co-authored-by: rebelinux <1002783+rebelinux@users.noreply.github.com> --- Sources/PowerShell/SignalChartPwsh.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/PowerShell/SignalChartPwsh.cs b/Sources/PowerShell/SignalChartPwsh.cs index 555c452..972115d 100644 --- a/Sources/PowerShell/SignalChartPwsh.cs +++ b/Sources/PowerShell/SignalChartPwsh.cs @@ -271,7 +271,11 @@ protected override void ProcessRecord() } else { - WriteObject("Values parameter cannot be null or empty."); + ThrowTerminatingError(new ErrorRecord( + new ArgumentException("Values parameter cannot be null or empty."), + "ValuesNullOrEmpty", + ErrorCategory.InvalidArgument, + null)); } } } From f5748296845f1767ba745106be46bf1838585d0e Mon Sep 17 00:00:00 2001 From: Jonathan Colon Date: Sat, 14 Mar 2026 11:15:45 -0400 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- Sources/PowerShell/SignalChartPwsh.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/PowerShell/SignalChartPwsh.cs b/Sources/PowerShell/SignalChartPwsh.cs index 972115d..78c70bf 100644 --- a/Sources/PowerShell/SignalChartPwsh.cs +++ b/Sources/PowerShell/SignalChartPwsh.cs @@ -272,10 +272,10 @@ protected override void ProcessRecord() else { ThrowTerminatingError(new ErrorRecord( - new ArgumentException("Values parameter cannot be null or empty."), + new ArgumentNullException(nameof(Values), "Values parameter cannot be null or empty."), "ValuesNullOrEmpty", ErrorCategory.InvalidArgument, - null)); + nameof(Values))); } } }