mirror of
https://github.com/google/nomulus
synced 2026-01-04 04:04:22 +00:00
https://github.com/google/nomulus/pull/129 migrated `GoogleCredential` to `GoogleCredentialsBundle` and introduced a subtle bug. I don't fully understand why but there are times when the access token is null but `credentials.refresh()` is not called, resulting in NullPointerException when `credentials.getAccessToken().getTokenValue()` is called. Since the new GoogleCredentials class supports `shouldRefresh()`, we now just rely on it to make sure that we always get a value access token.