Bring network nullcheck up.
MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -211,7 +211,13 @@ namespace WalletWasabi.Gui.Tabs
private void Save()
{
+ if (string.IsNullOrWhiteSpace(Network))
+ {
+ return;
+ }
+
var network = NBitcoin.Network.GetNetwork(Network);
+
var isValid =
string.IsNullOrEmpty(ValidatePrivacyLevel(SomePrivacyLevel, whiteSpaceOk: false))
&& string.IsNullOrEmpty(ValidatePrivacyLevel(FinePrivacyLevel, whiteSpaceOk: false))
@@ -225,11 +231,6 @@ namespace WalletWasabi.Gui.Tabs
return;
}
- if (string.IsNullOrWhiteSpace(Network))
- {
- return;
- }
-
var config = new Config(Global.Config.FilePath);
Dispatcher.UIThread.PostLogException(async () =>

Bring network nullcheck up.