EA-100545 - assert: DiffRequestFactoryImpl.getTitle

this commit partially reverts f7618fd096
This commit is contained in:
Aleksey Pivovarov
2017-04-24 12:49:13 +03:00
parent 12326d7748
commit 3b894ac36e
@@ -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);