diff --git a/plugins/git4idea/src/git4idea/ui/branch/GitBranchesAction.java b/plugins/git4idea/src/git4idea/ui/branch/GitBranchesAction.java index 8c1fb1266b27..9388bd306a0e 100644 --- a/plugins/git4idea/src/git4idea/ui/branch/GitBranchesAction.java +++ b/plugins/git4idea/src/git4idea/ui/branch/GitBranchesAction.java @@ -38,9 +38,6 @@ public class GitBranchesAction extends DumbAwareAction { final Project project = e.getData(PlatformDataKeys.PROJECT); assert project != null; GitRepositoryManager repositoryManager = GitUtil.getRepositoryManager(project); - if (repositoryManager == null) { - return; - } VirtualFile file = e.getData(PlatformDataKeys.VIRTUAL_FILE); GitRepository repository = (file == null ? GitBranchUiUtil.getCurrentRepository(project):