mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09: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)
|
public static BeatmapDecoder GetDecoder(StreamReader stream)
|
||||||
{
|
{
|
||||||
|
if (stream == null)
|
||||||
|
throw new ArgumentNullException(nameof(stream));
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
do { line = stream.ReadLine()?.Trim(); }
|
do { line = stream.ReadLine()?.Trim(); }
|
||||||
while (line != null && line.Length == 0);
|
while (line != null && line.Length == 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user