mirror of
https://github.com/google/nomulus
synced 2026-07-07 08:36:50 +00:00
c7478fc52b
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.