提交 9f886c75 编写于 作者: D Dennis Fischer

Fix a NullReferenceException in the syntax visualizer.

The syntax visualizer crashed Visual Studio when observing the constant value of `null`. This was because the syntax visualizer was not expecting
GetConstantValue().Value to be null with .HasValue set to true.
上级 35ccebd0
......@@ -778,7 +778,7 @@ private void ConstantValueDetailsMenuItem_Click(object sender, RoutedEventArgs e
else
{
typeTextLabel.Visibility = Visibility.Visible;
typeValueLabel.Content = value.Value.GetType().Name;
typeValueLabel.Content = value.Value?.GetType().Name ?? "<null>";
_propertyGrid.SelectedObject = value;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册