Use nullable
MODIFY
WalletWasabi.Fluent/Converters/SearchIconConverter.cs
WalletWasabi.Fluent/Converters/SearchIconConverter.cs
@@ -14,11 +14,11 @@ namespace WalletWasabi.Fluent.Converters
{
}
- object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ object? IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is SearchItemViewModel sivm)
{
- if (Application.Current.Styles.TryGetResource(sivm.IconName, out object resource))
+ if (Application.Current.Styles.TryGetResource(sivm.IconName, out object? resource))
{
return resource;
}

Use nullable