mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-100545 - assert: DiffRequestFactoryImpl.getTitle
this commit partially reverts f7618fd096
This commit is contained in:
@@ -96,7 +96,13 @@ public class VcsHistoryUtil {
|
||||
FilePath path1 = getRevisionPath(revision1);
|
||||
FilePath path2 = getRevisionPath(revision2);
|
||||
|
||||
String title = DiffRequestFactoryImpl.getTitle(path1, path2, " -> ");
|
||||
String title;
|
||||
if (path1 != null && path2 != null) {
|
||||
title = DiffRequestFactoryImpl.getTitle(path1, path2, " -> ");
|
||||
}
|
||||
else {
|
||||
title = DiffRequestFactoryImpl.getContentTitle(path);
|
||||
}
|
||||
|
||||
DiffContent diffContent1 = createContent(project, content1, revision1, path);
|
||||
DiffContent diffContent2 = createContent(project, content2, revision2, path);
|
||||
|
||||
Reference in New Issue
Block a user