Commit e5aee7c
authored
Resolve 'TypeError' in _setup_split_targets_build() (#5047)
This change addresses a `TypeError` in `_setup_split_targets_build()`.
[The
error](https://pantheon.corp.google.com/errors/detail/CNbfppvCxoWiyAE;locations=global?project=google.com:cluster-fuzz)
arises when `_get_targets_list()` returns `None`, because there is an
attempt to check for `fuzz_target` in a `NoneType` object. To fix this,
a separate check has been introduced to verify that `targets_list` is
not `None` before it is iterated over.1 parent 45eecc6 commit e5aee7c
File tree
2 files changed
+7
-1
lines changed- src/clusterfuzz/_internal
- build_management
- tests/core/build_management
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
| 1154 | + | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1734 | 1740 | | |
1735 | 1741 | | |
1736 | 1742 | | |
| |||
0 commit comments