git-branches-dashboard: fix possible KNPE (EA-220049)

GitOrigin-RevId: 13c46ad52ea1272520cd79563d6bee0cb0e7038a
This commit is contained in:
Dmitry Zhuravlev
2019-12-20 11:01:26 +00:00
committed by intellij-monorepo-bot
parent 1e64e9d4be
commit 7f45ef09fb
@@ -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..."