Skip to content

Commit

Permalink
Patch for the error causing a crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Sheriff committed Sep 12, 2024
1 parent 2bb0fa8 commit 3586a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/matrices-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ exports.retrieveTechniquesForMatrix = function(stixId, modified, callback) {
for (const parentTechnique of parentTechniques) {
parentTechnique.subtechniques = [];
for (const subtechnique of subtechniques) {
if (subtechnique.workspace.attack_id.split(".")[0] === parentTechnique.workspace.attack_id) {
if (subtechnique.workspace.attack_id && subtechnique.workspace.attack_id.split(".")[0] === parentTechnique.workspace.attack_id) {
parentTechnique.subtechniques.push(subtechnique);
}
}
Expand Down

0 comments on commit 3586a91

Please sign in to comment.