diff --git a/DragonFruit.OnionFruit/ViewModels/ConnectionSettingsTabViewModel.cs b/DragonFruit.OnionFruit/ViewModels/ConnectionSettingsTabViewModel.cs index 19b5e4a..aadc1ec 100644 --- a/DragonFruit.OnionFruit/ViewModels/ConnectionSettingsTabViewModel.cs +++ b/DragonFruit.OnionFruit/ViewModels/ConnectionSettingsTabViewModel.cs @@ -252,7 +252,7 @@ public TorNodeCountry SelectedExitCountry private static string GetFlagEmoji(TorNodeCountry country) { // use globe if not known - if (country.CountryCode == IOnionDatabase.TorCountryCode) + if (country?.CountryCode is null or IOnionDatabase.TorCountryCode) { return "\U0001F6A9"; }