[Bug] Fix missing indexes on navigator build (#3636)

Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com>
This commit is contained in:
Justin Ibarra
2024-05-01 15:50:54 -06:00
committed by GitHub
parent 54ff270c62
commit 2668f5f762
+1 -1
View File
@@ -183,7 +183,7 @@ class NavigatorBuilder:
self.add_rule_to_technique(rule, 'platforms', tactic, technique_id, value)
def _update_indexes(self, rule: TOMLRule, tactic: str, technique_id: str):
for index in rule.contents.data.get('index', []):
for index in rule.contents.data.get('index') or []:
value = rule.id
self.add_rule_to_technique(rule, 'indexes', tactic, technique_id, value, layer_key=index.lower())