I have a TreeView
where I want to get NextNode
so I do simple like:
var nextNode = e.Node.NextNode.Text;
If it have nextNode it returns value right. Problem if it comes null, application crash and throw
System.NullReferenceException: 'Object reference not set to an instance of an object.'
System.Windows.Forms.TreeNode.NextNode.get returned null.
Why application crash? should not return the null variable instead application crash?