diff --git a/vault/core.go b/vault/core.go index ca9fe8e84..35dd4e283 100644 --- a/vault/core.go +++ b/vault/core.go @@ -614,6 +614,11 @@ func (c *Core) checkToken( return nil, nil, fmt.Errorf("missing client token") } + if c.tokenStore == nil { + c.logger.Printf("[ERR] core: token store is unavailable") + return nil, nil, ErrInternalError + } + // Resolve the token policy te, err := c.tokenStore.Lookup(token) if err != nil {