1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

line can not be null in OsuLegacyDecoder.cs

This commit is contained in:
Miterosan 2017-11-07 23:16:42 +01:00
parent a15ab785f2
commit 1e6f1d07d2

View File

@ -246,6 +246,9 @@ namespace osu.Game.Beatmaps.Formats
/// <param name="line">The line which may contains variables.</param>
private void decodeVariables(ref string line)
{
if (line == null)
throw new ArgumentNullException(nameof(line));
while (line.IndexOf('$') >= 0)
{
string origLine = line;
@ -622,6 +625,9 @@ namespace osu.Game.Beatmaps.Formats
private void handleVariables(string line)
{
if (line == null)
throw new ArgumentNullException(nameof(line));
var pair = splitKeyVal(line, '=');
variables[pair.Key] = pair.Value;
}