Commit fc08ec9
committed
Fix potential nil pointer dereference when checking container state in Remove
Add nil check for inspected.State before accessing inspected.State.Running
in the Remove function. This is consistent with nil checks done elsewhere
in the codebase (convergence.go, monitor.go, ps.go) and prevents a potential
panic if Docker returns a container without State information.1 parent e7d870a commit fc08ec9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments