Skip to content

Commit

Permalink
Ensure GetText never returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed May 5, 2023
1 parent 9eeca11 commit 0703073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StructuredLogViewer/Controls/BuildControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,11 +1223,11 @@ string GetText(BaseNode node)
{
if (node is IHasTitle hasTitle)
{
return hasTitle.Title;
return hasTitle.Title ?? "";
}
else
{
return node.ToString();
return node.ToString() ?? "";
}
}
}
Expand Down

0 comments on commit 0703073

Please sign in to comment.