diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java index e5fb8b2f6b09..ba9cab56309d 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/VcsHistoryUtil.java @@ -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);