From 7f45ef09fb9692e9bf055862d33a6d2475239dcc Mon Sep 17 00:00:00 2001 From: Dmitry Zhuravlev Date: Fri, 20 Dec 2019 13:35:47 +0300 Subject: [PATCH] git-branches-dashboard: fix possible KNPE (EA-220049) GitOrigin-RevId: 13c46ad52ea1272520cd79563d6bee0cb0e7038a --- .../git4idea/ui/branch/dashboard/BranchesDashboardActions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..."