We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88bfd19 commit 0f6100cCopy full SHA for 0f6100c
1 file changed
extensions/ql-vscode/src/pure/result-keys.ts
@@ -73,7 +73,7 @@ export function getPath(sarif: sarif.Log, key: Path | PathNode): sarif.ThreadFlo
73
export function getPathNode(sarif: sarif.Log, key: PathNode): sarif.Location | undefined {
74
const path = getPath(sarif, key);
75
if (path === undefined) return undefined;
76
- return path.locations[key.pathNodeIndex];
+ return path.locations[key.pathNodeIndex]?.location;
77
}
78
79
/**
0 commit comments