Commit c20559d
authored
Fix nil pointer dereference in
## Changes
- Fix nil pointer dereference in `WaitForDeploymentToComplete` when the
app deployment `Status` field is nil. Add nil checks before accessing
`Status.State` for both active and pending deployments.
## Why
If the API returns a deployment object before its status is populated,
the CLI panics with a nil pointer dereference during `bundle deploy`.WaitForDeploymentToComplete (#4993)1 parent 64a5907 commit c20559d
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments