vcs: Fix ISE on calling "Group By" changes action with null input event

For instance, by mnemonic from quick actions popup

IDEA-192793 EA-121361
This commit is contained in:
Konstantin Kolosovsky
2018-05-30 00:29:00 +03:00
parent 7b313ad4b1
commit becb10a630
@@ -24,10 +24,10 @@ class SelectChangesGroupingActionGroup : DefaultActionGroup(), DumbAware {
}
val popup = SelectChangesGroupingActionPopup(group, e.dataContext)
val component = e.inputEvent.component
val component = e.inputEvent?.component
when (component) {
is ActionButtonComponent -> popup.showUnderneathOf(component)
else -> popup.showInCenterOf(component)
else -> popup.showInBestPositionFor(e.dataContext)
}
}
}