Skip to content

Commit ae41c64

Browse files
committed
fix: guard against undefined technique references when building detection mappings
1 parent c4478e7 commit ae41c64

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
This will patch the version number appropriately and create the correct tag on the current commit.
99
The creation of the tag can be disabled with the --no-git-tag-version if desired.
1010
-->
11+
# 5.3.2 - 21 April 2026
12+
13+
## Fixes
14+
- Fixed an issue preventing the matrix from building if a detection mapping had no technique references.
15+
1116

1217
# 5.3.1 - 6 April 2026
1318

nav-app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nav-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "https://github.com/mitre-attack/attack-navigator.git"
77
},
8-
"version": "5.3.1",
8+
"version": "5.3.2",
99
"license": "Apache-2.0",
1010
"scripts": {
1111
"ng": "ng",

nav-app/src/app/services/data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class DataService {
232232
public buildDataComponentToTechniquesMap(domain: Domain, analytics: any[]) {
233233
for (let det of domain.detectionStrategies) {
234234
let techniqueRefs = domain.relationships.detection_strategies_detect.get(det.id);
235-
let techniqueRef = techniqueRefs.length > 0 ? techniqueRefs[0] : undefined; // should only be one
235+
let techniqueRef = techniqueRefs?.length > 0 ? techniqueRefs[0] : undefined; // should only be one
236236
const technique = domain.getTechniqueById(techniqueRef);
237237
if (!technique) continue; // no technique found, skip
238238
for (let analytic_ref of det.analyticRefs) {

0 commit comments

Comments
 (0)