7dadcbf091
In Ia6561200 we changed to look up users in the cache by the username from both the "gerrit:" and "user:" schemes. However, the username cache only contains keys for the "user:" scheme, so we need to double-check that there is actually a corresponding external ID in the cached AccountState for the actual ID we're looking up. This was not the case in e.g. LuceneQueryChangesTest, causing an NPE. If the requested key does not match exactly, we fall back to fetching the external ID directly from the database. Change-Id: Id3b1b9b76d6ba415abee2051409ff0843caf1c85 |
||
---|---|---|
.. | ||
src | ||
BUCK |