diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FragmentedDiffRequestFromChange.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FragmentedDiffRequestFromChange.java index 05621764e935..f985a77fb01d 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FragmentedDiffRequestFromChange.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/FragmentedDiffRequestFromChange.java @@ -117,7 +117,8 @@ public class FragmentedDiffRequestFromChange { myOldDocument = documentFromRevision(change.getBeforeRevision()); final String convertedPath = FilePathsHelper.convertPath(filePath); if (filePath.getVirtualFile() != null) { - myDocument = FileDocumentManager.getInstance().getDocument(filePath.getVirtualFile()); + myDocument = FileStatus.DELETED.equals(change.getFileStatus()) ? new DocumentImpl("") : + FileDocumentManager.getInstance().getDocument(filePath.getVirtualFile()); if (myDocument != null) { final List> cached = cache.get(new Pair(myDocument.getModificationStamp(), convertedPath)); if (cached != null) {