Skip to content

Commit 0f6100c

Browse files
committed
Bugfix in getPathNode
1 parent 88bfd19 commit 0f6100c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/pure/result-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function getPath(sarif: sarif.Log, key: Path | PathNode): sarif.ThreadFlo
7373
export function getPathNode(sarif: sarif.Log, key: PathNode): sarif.Location | undefined {
7474
const path = getPath(sarif, key);
7575
if (path === undefined) return undefined;
76-
return path.locations[key.pathNodeIndex];
76+
return path.locations[key.pathNodeIndex]?.location;
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)