More work on nullable references

This commit is contained in:
Nikolaj Geisle
2022-02-22 13:35:32 +01:00
parent 315e8d6fe6
commit a8cf6ee127
189 changed files with 1271 additions and 983 deletions

View File

@@ -22,7 +22,7 @@ namespace Umbraco.Cms.Core.Trees
/// <param name="parentId">The parent id for the current node</param>
/// <param name="getChildNodesUrl"></param>
/// <param name="menuUrl"></param>
public TreeNode(string nodeId, string parentId, string getChildNodesUrl, string menuUrl)
public TreeNode(string nodeId, string? parentId, string getChildNodesUrl, string menuUrl)
{
if (nodeId == null) throw new ArgumentNullException(nameof(nodeId));
if (string.IsNullOrWhiteSpace(nodeId)) throw new ArgumentException("Value can't be empty or consist only of white-space characters.", nameof(nodeId));