Merge "ChangeScreen: Expect that current revision can be null"

This commit is contained in:
ekempin
2016-11-21 07:08:18 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -462,7 +462,8 @@ public class ChangeScreen extends Screen {
}
private void gotoSibling(int offset) {
if (offset > 0 && changeInfo.currentRevision().equals(revision)) {
if (offset > 0 && changeInfo.currentRevision() != null
&& changeInfo.currentRevision().equals(revision)) {
return;
}

View File

@@ -215,7 +215,8 @@ public class RelatedChanges extends TabPanel {
EnumSet.of(ListChangesOption.CURRENT_REVISION, ListChangesOption.CURRENT_COMMIT),
new TabChangeListCallback(Tab.CHERRY_PICKS, info.project(), revision));
if (info.currentRevision().equals(revision)) {
if (info.currentRevision() != null
&& info.currentRevision().equals(revision)) {
ChangeApi.change(info.legacyId().get()).view("submitted_together")
.get(new TabChangeListCallback(Tab.SUBMITTED_TOGETHER,
info.project(), revision));