Fix empty block corner case in PatienceDiff
There is a corner case where we get an EMPTY region during recursion, but we didn't expect to receive that. Its harmless to ignore the region since the region is empty and has no content, so do so rather than throwing an exception Change-Id: I50dcec81ecba763072bb739adfab5879fb48b23a Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
7a0c126d5f
commit
4fc50df97d
|
@ -182,6 +182,8 @@ private void diff(Edit r, long[] pCommon, int pIdx, int pEnd) {
|
|||
break;
|
||||
|
||||
case EMPTY:
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue