Commit 079e030
authored
IVF-PQ tests: fix segfault when accessing empty lists (#933)
Check if the `index.lists()[label]` is not an empty shared pointer before accessing its content in tests.
This is a follow-up on #838, in which I fixed this problem in one place, but not in two others in the same file.
Authors:
- Artem M. Chirkin (https://github.com/achirkin)
Approvers:
- Corey J. Nolet (https://github.com/cjnolet)
URL: #9331 parent dbe45c2 commit 079e030
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
353 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
0 commit comments