Fix potential NPE in cherry-pick submit strategy
Change-Id: I0099d9a73a3f5e86c77235668bc0fc1205979456
This commit is contained in:
parent
098272e6be
commit
6c1c7ca944
@ -164,7 +164,7 @@ public class CherryPick extends SubmitStrategy {
|
|||||||
ChangeUtil.nextPatchSetId(args.repo, n.change().currentPatchSetId());
|
ChangeUtil.nextPatchSetId(args.repo, n.change().currentPatchSetId());
|
||||||
final PatchSet ps = new PatchSet(id);
|
final PatchSet ps = new PatchSet(id);
|
||||||
ps.setCreatedOn(TimeUtil.nowTs());
|
ps.setCreatedOn(TimeUtil.nowTs());
|
||||||
ps.setUploader(submitAudit.getAccountId());
|
ps.setUploader(cherryPickUser.getAccountId());
|
||||||
ps.setRevision(new RevId(newCommit.getId().getName()));
|
ps.setRevision(new RevId(newCommit.getId().getName()));
|
||||||
|
|
||||||
final RefUpdate ru;
|
final RefUpdate ru;
|
||||||
|
Loading…
Reference in New Issue
Block a user