Make lots of models nullable

This commit is contained in:
Nikolaj Geisle
2022-01-21 11:43:58 +01:00
parent b6d5465b49
commit 936dd38c55
278 changed files with 1379 additions and 1237 deletions

View File

@@ -327,9 +327,9 @@ namespace Umbraco.Cms.Core.IO
/// <param name="path">The filesystem-relative path.</param>
/// <returns>The URL.</returns>
/// <remarks>All separators are forward-slashes.</remarks>
public string GetUrl(string path)
public string GetUrl(string? path)
{
path = EnsureUrlSeparatorChar(path).Trim(Constants.CharArrays.ForwardSlash);
path = EnsureUrlSeparatorChar(path ?? string.Empty).Trim(Constants.CharArrays.ForwardSlash);
return _rootUrl + "/" + path;
}