mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-15 17:23:32 -05:00
Fix null ref when expanding nodes from other providers (#1816)
* Fix null ref when expanding nodes from other providers (cherry picked from commit 572a7b37b2a3651db5a101a8780c874c51b55b96) * cleanup
This commit is contained in:
@@ -202,9 +202,9 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.Nodes
|
||||
nodePath = path;
|
||||
}
|
||||
|
||||
public TreeNode FindNodeByPath(string path, bool expandIfNeeded = false)
|
||||
public TreeNode? FindNodeByPath(string path, bool expandIfNeeded = false)
|
||||
{
|
||||
TreeNode nodeForPath = ObjectExplorerUtils.FindNode(this, node =>
|
||||
TreeNode? nodeForPath = ObjectExplorerUtils.FindNode(this, node =>
|
||||
{
|
||||
return node.GetNodePath() == path;
|
||||
}, nodeToFilter =>
|
||||
|
||||
Reference in New Issue
Block a user