Skip to content

Commit

Permalink
null handling for process output/error data
Browse files Browse the repository at this point in the history
  • Loading branch information
kllysng committed Jan 7, 2025
1 parent d83d251 commit 7abd42c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/E2E Tests/WebAppUiTests/UiTestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ public static Process StartProcessLocally(
else
{
// Log the output and error streams
process.OutputDataReceived += (sender, e) => output.WriteLine(e.Data);
process.ErrorDataReceived += (sender, e) => output.WriteLine(e.Data);
process.OutputDataReceived += (sender, e) => output.WriteLine(e?.Data ?? "null output data received.");
process.ErrorDataReceived += (sender, e) => output.WriteLine(e?.Data ?? "null error data received.");

process.BeginOutputReadLine();
process.BeginErrorReadLine();
Expand Down

0 comments on commit 7abd42c

Please sign in to comment.