From bc872fd41b948d6e55ff7c5e7fc2f9c3187b2ace Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Fri, 7 Apr 2017 16:14:15 +0100 Subject: [PATCH] Don't check for disposed project: makes no sense w/o read action --- plugins/git4idea/src/git4idea/GitContentRevision.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/git4idea/src/git4idea/GitContentRevision.java b/plugins/git4idea/src/git4idea/GitContentRevision.java index 9aee7df20de0..411d3bc82e66 100644 --- a/plugins/git4idea/src/git4idea/GitContentRevision.java +++ b/plugins/git4idea/src/git4idea/GitContentRevision.java @@ -141,12 +141,7 @@ public class GitContentRevision implements ByteBackedContentRevision { @Nullable VcsRevisionNumber revisionNumber, Project project, boolean isDeleted, final boolean canBeDeleted, boolean unescapePath) throws VcsException { - final FilePath file; - if (project.isDisposed()) { - file = VcsUtil.getFilePath(makeAbsolutePath(vcsRoot, path, unescapePath), false); - } else { - file = createPath(vcsRoot, path, isDeleted, canBeDeleted, unescapePath); - } + FilePath file = createPath(vcsRoot, path, isDeleted, canBeDeleted, unescapePath); return createRevision(file, revisionNumber, project); }