Fix NullPointerException in group syncing

We were trying to set the scopes too early in the creation of a
GoogleCredential.  They aren't yet known at this point in the code and should be
an empty collection (and also not null, which yields an NPE).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132477868
This commit is contained in:
mcilwain 2016-09-07 14:04:49 -07:00 committed by Ben McIlwain
parent c41c4dbbdc
commit a6db24c8bb
2 changed files with 11 additions and 1 deletions

View file

@ -42,6 +42,7 @@ java_library(
"//java/com/google/api/client/json",
"//java/com/google/api/client/json/jackson2",
"//java/com/google/common/base",
"//java/com/google/common/collect",
"//third_party/java/appengine:appengine-api",
"//third_party/java/dagger",
"//java/google/registry/config",