beatmap and stream can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:17:07 +01:00
parent 1e6f1d07d2
commit 13e75780d7

View File

@ -644,6 +644,11 @@ namespace osu.Game.Beatmaps.Formats
protected override void ParseFile(StreamReader stream, Beatmap beatmap)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
if (stream == null)
throw new ArgumentNullException(nameof(stream));
beatmap.BeatmapInfo.BeatmapVersion = beatmapVersion;
Section section = Section.None;