Commit a4bdbd1
Guard against empty pipeline in Pipeline.Start()
Pipeline.Start() indexes stageStarters[0] and p.stages[len-1]
unconditionally — zero stages causes an index out of bounds
panic. Return nil early when no stages have been added.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f0a5065 commit a4bdbd1
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
271 | 275 | | |
272 | 276 | | |
273 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments