Merge branch 'stable-2.15'
* stable-2.15: Avoid NPE when listing groups of a user in Gerrit slave mode polygerrit: Add note in README about npm install Change-Id: I3d5a4ecf1b3a7fcf9af36de95b11efa0d51cf265
This commit is contained in:
@@ -204,7 +204,8 @@ public class GroupIncludeCacheImpl implements GroupIncludeCache {
|
||||
|
||||
@Override
|
||||
public ImmutableList<AccountGroup.UUID> load(AccountGroup.UUID key) throws OrmException {
|
||||
if (groupIndexProvider.get().getSchema().hasField(GroupField.SUBGROUP)) {
|
||||
GroupIndex groupIndex = groupIndexProvider.get();
|
||||
if (groupIndex != null && groupIndex.getSchema().hasField(GroupField.SUBGROUP)) {
|
||||
return groupQueryProvider
|
||||
.get()
|
||||
.bySubgroup(key)
|
||||
|
||||
@@ -101,6 +101,9 @@ bazel build polygerrit &&
|
||||
|
||||
This step requires the `web-component-tester` npm module.
|
||||
|
||||
Note: it may be necessary to add the options `--unsafe-perm=true --allow-root`
|
||||
to the `npm install` command to avoid file permission errors.
|
||||
|
||||
Run all web tests:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user