stream can not be null in BeatmapDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:12:30 +01:00
parent 8dc24a52a7
commit a8acea9cdb

View File

@ -18,6 +18,9 @@ namespace osu.Game.Beatmaps.Formats
public static BeatmapDecoder GetDecoder(StreamReader stream)
{
if (stream == null)
throw new ArgumentNullException(nameof(stream));
string line;
do { line = stream.ReadLine()?.Trim(); }
while (line != null && line.Length == 0);