mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[file-history] fix comparison between two revisions where file was deleted
In this case, both before and after revisions are null. EA-129345
This commit is contained in:
@@ -89,8 +89,9 @@ public class FileHistoryUtil {
|
||||
}
|
||||
|
||||
List<Hash> parentHashes = map(parentCommits, c -> logData.getCommitId(c).getHash());
|
||||
List<Change> parentChanges = map2List(toCollection(zip(parentCommits, parentHashes)), parent -> {
|
||||
List<Change> parentChanges = mapNotNull(toCollection(zip(parentCommits, parentHashes)), parent -> {
|
||||
ContentRevision beforeRevision = createContentRevision(parent.second, parent.first, visiblePack, diffHandler);
|
||||
if (afterRevision == null && beforeRevision == null) return null;
|
||||
return new Change(beforeRevision, afterRevision);
|
||||
});
|
||||
if (parentChanges.size() <= 1) {
|
||||
|
||||
Reference in New Issue
Block a user