Fix build error in ListMembers
Change-Id: I012da208946221685a8cb4e2f3f891fa2d7a8617
This commit is contained in:
parent
2dc5edc071
commit
cdcc88ddc4
@ -23,6 +23,7 @@ import com.google.gerrit.common.errors.NoSuchGroupException;
|
||||
import com.google.gerrit.extensions.restapi.AuthException;
|
||||
import com.google.gerrit.extensions.restapi.BadRequestException;
|
||||
import com.google.gerrit.extensions.restapi.ResourceConflictException;
|
||||
import com.google.gerrit.extensions.restapi.ResourceNotFoundException;
|
||||
import com.google.gerrit.extensions.restapi.RestReadView;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
import com.google.gerrit.reviewdb.client.AccountGroup;
|
||||
@ -63,7 +64,7 @@ public class ListMembers implements RestReadView<GroupResource> {
|
||||
@Override
|
||||
public List<MemberInfo> apply(final GroupResource resource)
|
||||
throws AuthException, BadRequestException, ResourceConflictException,
|
||||
Exception {
|
||||
ResourceNotFoundException, Exception {
|
||||
if (resource.toAccountGroup() == null) {
|
||||
throw new ResourceNotFoundException(resource.getGroupUUID().get());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user