1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 09:12:54 +08:00

Avoid throwing exceptions when MutatePath is called with null path

This commit is contained in:
Dean Herbert 2020-09-01 15:49:21 +09:00
parent faf9b0a528
commit 218cc39a4c

View File

@ -25,7 +25,7 @@ namespace osu.Game.IO
this.subPath = subPath;
}
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) ? Path.Combine(subPath, path) : path;
protected virtual string MutatePath(string path) => !string.IsNullOrEmpty(subPath) && !string.IsNullOrEmpty(path) ? Path.Combine(subPath, path) : path;
protected virtual void ChangeTargetStorage(Storage newStorage)
{