1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

BeatmapSet and manager can not be null in BeatmapGroup.cs

This commit is contained in:
Miterosan 2017-11-07 23:10:06 +01:00
parent 1f620886cb
commit 080c3fabba

View File

@ -72,6 +72,11 @@ namespace osu.Game.Beatmaps.Drawables
public BeatmapGroup(BeatmapSetInfo beatmapSet, BeatmapManager manager)
{
if (beatmapSet == null)
throw new ArgumentNullException(nameof(beatmapSet));
if (manager == null)
throw new ArgumentNullException(nameof(manager));
BeatmapSet = beatmapSet;
WorkingBeatmap beatmap = manager.GetWorkingBeatmap(BeatmapSet.Beatmaps.FirstOrDefault());