Skip to content

Commit

Permalink
Fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Mar 6, 2024
1 parent 562515d commit d2aafa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/StructuredLogger/Search/ResultTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ private static TreeNode InsertParent(
if (folderProxy == null)
{
folderProxy = parent.GetOrCreateNodeWithText<ProxyNode>(name);
map[actualParent] = folderProxy;
if (map != null)
{
map[actualParent] = folderProxy;
}
}

folderProxy.Original = actualParent;
Expand Down

0 comments on commit d2aafa1

Please sign in to comment.