More work on nullable reference types

This commit is contained in:
Nikolaj Geisle
2022-03-31 14:35:23 +02:00
parent 2460c82e02
commit 4571ecb0e3
88 changed files with 388 additions and 340 deletions

View File

@@ -68,7 +68,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
/// <param name="id"></param>
/// <param name="queryStrings"></param>
/// <returns></returns>
public ActionResult<TreeNode?> GetTreeNode([FromRoute] string id, [ModelBinder(typeof(HttpQueryStringModelBinder))] FormCollection queryStrings)
public ActionResult<TreeNode?> GetTreeNode([FromRoute] string id, [ModelBinder(typeof(HttpQueryStringModelBinder))] FormCollection? queryStrings)
{
int asInt;
Guid asGuid = Guid.Empty;
@@ -123,7 +123,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
return node;
}
protected abstract TreeNode? GetSingleTreeNode(IEntitySlim entity, string parentId, FormCollection queryStrings);
protected abstract TreeNode? GetSingleTreeNode(IEntitySlim entity, string parentId, FormCollection? queryStrings);
/// <summary>
/// Returns a <see cref="TreeNode"/> for the <see cref="IUmbracoEntity"/> and