ApprovalsUtil: Pass correct committerId to canSee
Accidentally passed authorId after checking that committerId is not null, which can lead to NPE if authorId is null. Change-Id: I178257cd1bc278e7d56c073c4cc6bcbc35ac294c
This commit is contained in:
parent
64beae58a2
commit
b406068303
@ -221,7 +221,7 @@ public class ApprovalsUtil {
|
||||
need.add(authorId);
|
||||
}
|
||||
|
||||
if (committerId != null && canSee(db, update.getNotes(), authorId)) {
|
||||
if (committerId != null && canSee(db, update.getNotes(), committerId)) {
|
||||
need.add(committerId);
|
||||
}
|
||||
need.remove(change.getOwner());
|
||||
|
Loading…
Reference in New Issue
Block a user