Skip to content
Snippets Groups Projects
Commit 07135b49 authored by Darren Shepherd's avatar Darren Shepherd
Browse files

defensively check for nil, although that should never happen

parent 0b28b96c
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ func lookupNamedContainer(c *Context) error {
if _, ok := err.(*dockerClient.NoSuchContainer); ok {
return nil
}
if err != nil {
if err != nil || container == nil {
return err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment