Skip to content
Permalink
Browse files

fix possible CCE

If Git plugin disabled it is possible to have CCE in case if there is non Git VCS root
  • Loading branch information...
dmitry-zhuravlev committed Aug 2, 2019
1 parent aca47b9 commit 3c69e09783da8c3096434ac17e30bb95960e4fc4
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/mobi/hsz/idea/gitignore/IgnoreManager.java
@@ -35,7 +35,10 @@
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.fileTypes.FileTypeManager;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.*;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.DumbService;
import com.intellij.openapi.project.NoAccessDuringPsiEvents;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.FileStatusManager;
@@ -581,7 +584,7 @@ public void refresh() {
public void run(boolean silent) {
final ConcurrentMap<VirtualFile, VcsRoot> result = ContainerUtil.newConcurrentMap();
for (VcsRoot vcsRoot : vcsRoots) {
if (!(vcsRoot.getVcs() instanceof GitVcs) || vcsRoot.getPath() == null) {
if (!Utils.isGitPluginEnabled() || !(vcsRoot.getVcs() instanceof GitVcs) || vcsRoot.getPath() == null) {
continue;
}
final VirtualFile root = vcsRoot.getPath();

0 comments on commit 3c69e09

Please sign in to comment.
You can’t perform that action at this time.