mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:06:06 +08:00
Add temporary accounting for tests with null files
This commit is contained in:
parent
9c4f39e968
commit
e52c0a34f8
@ -293,7 +293,11 @@ namespace osu.Game.Beatmaps
|
|||||||
if (beatmapInfo?.BeatmapSet == null || beatmapInfo == DefaultBeatmap?.BeatmapInfo)
|
if (beatmapInfo?.BeatmapSet == null || beatmapInfo == DefaultBeatmap?.BeatmapInfo)
|
||||||
return DefaultBeatmap;
|
return DefaultBeatmap;
|
||||||
|
|
||||||
if (beatmapInfo.BeatmapSet.Files == null)
|
// files may be null in some tests.
|
||||||
|
if (beatmapInfo.BeatmapSet?.Files == null)
|
||||||
|
return DefaultBeatmap;
|
||||||
|
|
||||||
|
if (beatmapInfo.BeatmapSet.Files.Count == 0)
|
||||||
{
|
{
|
||||||
var info = beatmapInfo;
|
var info = beatmapInfo;
|
||||||
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
beatmapInfo = QueryBeatmap(b => b.ID == info.ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user