diff --git a/plugins/git4idea/src/git4idea/ui/branch/dashboard/BranchesDashboardActions.kt b/plugins/git4idea/src/git4idea/ui/branch/dashboard/BranchesDashboardActions.kt index 504321d026aa..142d6902120a 100644 --- a/plugins/git4idea/src/git4idea/ui/branch/dashboard/BranchesDashboardActions.kt +++ b/plugins/git4idea/src/git4idea/ui/branch/dashboard/BranchesDashboardActions.kt @@ -249,7 +249,7 @@ internal object BranchesDashboardActions { text = "Fetch All Remotes" icon = AllIcons.Actions.Refresh description = "" - val project = e.project!! + val project = e.project ?: return@with if (GitFetchSupport.fetchSupport(project).isFetchRunning) { isEnabled = false description = "Fetch in progress..."