Merge "Fix java.lang.ArrayIndexOutOfBoundsException when checking for parent" into stable-2.14

This commit is contained in:
David Pursehouse 2017-06-14 13:30:29 +00:00 committed by Gerrit Code Review
commit 70958ea949

View File

@ -225,7 +225,7 @@ public class ChangeKindCacheImpl implements ChangeKindCache {
}
if ((prior.getParentCount() != 1 || next.getParentCount() != 1)
&& (!onlyFirstParentChanged(prior, next) || prior.getParentCount() == 0)) {
&& (prior.getParentCount() == 0 || !onlyFirstParentChanged(prior, next))) {
// Trivial rebases done by machine only work well on 1 parent.
return ChangeKind.REWORK;
}