Skip to content

Commit

Permalink
Use unfiltered source lookup in tree node insertion helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Nov 2, 2024
1 parent 6ac8549 commit 4a58d98
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ public static WorkspaceTreeNode getOrInsertIntoTree(@Nonnull WorkspaceTreeNode n
// Work off of the first node that does NOT contain a directory value.
// This should result in the node pointing to a bundle.
while (node.getValue() instanceof DirectoryPathNode) {
node = (WorkspaceTreeNode) node.getParent();
node = (WorkspaceTreeNode) node.getSourceParent();
if (node == null)
throw new IllegalStateException("Directory path node had no parent in workspace tree");
}

// Insert the directory path, separated by '/'.
Expand Down

0 comments on commit 4a58d98

Please sign in to comment.