diff --git a/builtin/logical/database/path_rotate_credentials.go b/builtin/logical/database/path_rotate_credentials.go index 8a2673dc2e2d..8059a49d2d98 100644 --- a/builtin/logical/database/path_rotate_credentials.go +++ b/builtin/logical/database/path_rotate_credentials.go @@ -187,7 +187,7 @@ func (b *databaseBackend) pathRotateRoleCredentialsUpdate() framework.OperationF item.Priority = time.Now().Add(10 * time.Second).Unix() // Preserve the WALID if it was returned - if resp.WALID != "" { + if resp != nil && resp.WALID != "" { item.Value = resp.WALID } } else {