Commit 69a7043
committed
[core] node: Check chunk size for nodes with dynamic sizes
Nodes with dynamic sizes may end up in a state where they have no chunk
(e.g. because there are no input images for the previous nodes). In this
case, the first chunk is the list cannot be accessed as it does not
exist yet, raising an `IndexError`.
We now check that there is at least an element in the chunk list before
accessing it. If there is none, the default execution mode is returned
instead.1 parent 7cac2bf commit 69a7043
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
1546 | 1549 | | |
1547 | 1550 | | |
1548 | 1551 | | |
| |||
0 commit comments