diff --git a/vault/token_store.go b/vault/token_store.go index 95afa3c91718..27a0e32dc3be 100644 --- a/vault/token_store.go +++ b/vault/token_store.go @@ -1156,6 +1156,9 @@ func (ts *TokenStore) lookupBatchToken(ctx context.Context, id string) (*logical if err != nil { return nil, err } + if te == nil { + return nil, nil + } if time.Now().After(time.Unix(te.CreationTime, 0).Add(te.TTL)) { return nil, nil