mirror of
https://github.com/ppy/osu
synced 2025-03-25 04:18:03 +00:00
stream can not be null in BeatmapDecoder.cs
This commit is contained in:
parent
8dc24a52a7
commit
a8acea9cdb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user