diff --git a/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultLauncherAccountParser.cs b/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultLauncherAccountParser.cs index 9994646..7d9e8bb 100644 --- a/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultLauncherAccountParser.cs +++ b/ProjBobcat/ProjBobcat/DefaultComponent/Launch/DefaultLauncherAccountParser.cs @@ -143,10 +143,13 @@ public bool AddNewAccount(string uuid, AccountModel account, out Guid? id) public bool RemoveAccount(Guid id) { var result = Find(id); + if (!result.HasValue) return false; var (key, _) = result.Value; + if (string.IsNullOrEmpty(key)) return false; + LauncherAccount?.Accounts?.Remove(key); Save();