Commit 7379a39
committed
Validate target objects before accessing properties in get_file_coverage
Filter out null/non-object elements in the targets array before
accessing properties, preventing TypeError on malformed xccov output.
Consistent with the isValidCoverageTarget guard in get_coverage_report.1 parent 97e7241 commit 7379a39
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
0 commit comments