ChangeScreen2: Fix NPE in /related caused by wrong variable

Change-Id: Iff34707b77b6b579c8441f1826510ac1a56b09b3
This commit is contained in:
Shawn Pearce
2013-07-22 16:59:32 -07:00
parent ac195d596f
commit 64cd93e0d5

View File

@@ -167,7 +167,7 @@ public class GetRelated implements RestReadView<RevisionResource> {
for (PatchSet.Id psId : children.get(id)) {
PatchSet.Id e = matches.get(psId.getParentKey());
if ((e == null || e.get() < psId.get())
&& isVisible(projectCtl, changes, patchSets, e)) {
&& isVisible(projectCtl, changes, patchSets, psId)) {
matches.put(psId.getParentKey(), psId);
}
}