Skip to content

Commit

Permalink
Merge "NPE when deleting draft patch set when previous draft already …
Browse files Browse the repository at this point in the history
…deleted" into stable-2.6
  • Loading branch information
EdwinKempin authored and Gerrit Code Review committed Sep 18, 2013
2 parents 5ff6ebe + 357b5be commit 640b95c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ public ReviewResult call() throws NoSuchChangeException, OrmException {
}
if (change.currentPatchSetId().equals(patchSetId)) {
try {
PatchSet.Id id =
new PatchSet.Id(patchSetId.getParentKey(), patchSetId.get() - 1);
change.setCurrentPatchSet(patchSetInfoFactory.get(db, id));
change.setCurrentPatchSet(patchSetInfoFactory.get(db, highestId));
} catch (PatchSetInfoNotAvailableException e) {
throw new NoSuchChangeException(changeId);
}
Expand Down

0 comments on commit 640b95c

Please sign in to comment.