1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Update null allowances across beatmaps and scores

This commit is contained in:
Dean Herbert 2022-01-10 19:27:13 +09:00
parent 6033a825ed
commit f451560203
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Beatmaps
} }
[UsedImplicitly] [UsedImplicitly]
public BeatmapInfo() // TODO: this bypasses null safeties. needs to be hidden from user api (only should be used by realm). public BeatmapInfo() // TODO: consider removing this and migrating all usages to ctor with parameters.
{ {
} }

View File

@ -44,7 +44,7 @@ namespace osu.Game.Scoring
public long OnlineID { get; set; } = -1; public long OnlineID { get; set; } = -1;
[MapTo("User")] [MapTo("User")]
public RealmUser RealmUser { get; set; } = null!; public RealmUser RealmUser { get; set; } = new RealmUser();
public ScoreInfo(BeatmapInfo beatmap, RulesetInfo ruleset, RealmUser realmUser) public ScoreInfo(BeatmapInfo beatmap, RulesetInfo ruleset, RealmUser realmUser)
{ {
@ -54,7 +54,7 @@ namespace osu.Game.Scoring
} }
[UsedImplicitly] [UsedImplicitly]
public ScoreInfo() // TODO: this bypasses null safeties. needs to be hidden from user api (only should be used by realm). public ScoreInfo() // TODO: consider removing this and migrating all usages to ctor with parameters.
{ {
} }