Commit 4b788c6
container/docker: GetStats: prevent nil-pointer
stats can be nil if an error occurs during collecting
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent 9ad7b85 commit 4b788c6
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | 328 | | |
| 329 | + | |
330 | 330 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | 331 | | |
335 | 332 | | |
336 | 333 | | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| |||
0 commit comments