Skip to content

Commit

Permalink
Filter null messages
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Dec 11, 2023
1 parent 3b8b954 commit cea4874
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected sealed override void Initialize(SonarAnalysisContext context) =>
{
Directory.CreateDirectory(parameters.OutPath);
using var stream = File.Create(Path.Combine(parameters.OutPath, FileName));
foreach (var message in treeMessages.GetConsumingEnumerable(cancel))
foreach (var message in treeMessages.GetConsumingEnumerable(cancel).WhereNotNull())
{
message.WriteDelimitedTo(stream);
}
Expand Down

0 comments on commit cea4874

Please sign in to comment.