diff --git a/vault/acl.go b/vault/acl.go index 082a342d2..d12bc1c78 100644 --- a/vault/acl.go +++ b/vault/acl.go @@ -37,6 +37,10 @@ func NewACL(policies []*Policy) (*ACL, error) { // Inject each policy for _, policy := range policies { + // Ignore a nil policy object + if policy == nil { + continue + } // Check if this is root if policy.Name == "root" { a.root = true