Skip to content

Commit

Permalink
- Fixed a crash due to the addition of Search Symbol Named command
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 18, 2018
1 parent 25d192b commit 57de934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Codist/SmartBars/CSharpSmartBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,10 @@ void SortAndGroupSymbolByClass(MenuItem menuItem, List<ISymbol> members) {
if (members.Count < 10) {
foreach (var member in members) {
menuItem.Items.Add(new SymbolMenuItem(this, member, member.Locations) {
Header = new TextBlock().Append(member.ContainingType.Name + ".", WpfBrushes.Gray).Append(member.Name)
Header = (member.ContainingType != null
? new TextBlock().Append(member.ContainingType.Name + ".", WpfBrushes.Gray)
: new TextBlock())
.Append(member.Name)
});
}
}
Expand Down

0 comments on commit 57de934

Please sign in to comment.