Merge "Fix java.lang.ArrayIndexOutOfBoundsException when checking for parent" into stable-2.14
This commit is contained in:
commit
70958ea949
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user