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
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public WrappedStorage(Storage underlyingStorage, string subPath = null)
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)
{