mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +08:00
panels can not be null in BeatmapSetHeader.cs
This commit is contained in:
parent
0f539d24f0
commit
36ce287b88
@ -160,6 +160,9 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels)
|
public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels)
|
||||||
{
|
{
|
||||||
|
if (panels == null)
|
||||||
|
throw new ArgumentNullException(nameof(panels));
|
||||||
|
|
||||||
foreach (var p in panels)
|
foreach (var p in panels)
|
||||||
difficultyIcons.Add(new DifficultyIcon(p.Beatmap));
|
difficultyIcons.Add(new DifficultyIcon(p.Beatmap));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user