Fix more errors

This commit is contained in:
Nikolaj Geisle
2022-02-28 14:13:21 +01:00
parent 915e68e72e
commit d845bd68bc
3 changed files with 5 additions and 5 deletions

View File

@@ -1252,9 +1252,9 @@ namespace Umbraco.Extensions
/// <param name="alias">The text to filter.</param>
/// <param name="shortStringHelper">The short string helper.</param>
/// <returns>The safe alias.</returns>
public static string ToSafeAlias(this string alias, IShortStringHelper shortStringHelper)
public static string ToSafeAlias(this string alias, IShortStringHelper? shortStringHelper)
{
return shortStringHelper.CleanStringForSafeAlias(alias);
return shortStringHelper?.CleanStringForSafeAlias(alias) ?? string.Empty;
}
/// <summary>