mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Handle the case where the ruleset isn't found in the EF database any more
This commit is contained in:
@ -270,7 +270,7 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId) =>
|
||||
efContextFactory?.Get().RulesetInfo.First(r => r.ID == rulesetId)?.ShortName;
|
||||
efContextFactory?.Get().RulesetInfo.FirstOrDefault(r => r.ID == rulesetId)?.ShortName;
|
||||
|
||||
/// <summary>
|
||||
/// Flush any active contexts and block any further writes.
|
||||
|
Reference in New Issue
Block a user