More work on nullable references
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user